home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 November / Freeware November 1998.img / dist / fw_UDELxntp.idb / usr / freeware / docs / xntpd / faq.z / faq
Text File  |  1998-01-21  |  137KB  |  3,253 lines

  1. 
  2. Received: from louie.udel.edu by huey.udel.edu id aa25630; 1 May 94 10:13 EDT
  3. Received: from ni.umd.edu by louie.udel.edu id aa05526; 1 May 94 10:07 EDT
  4. Received: by ni.umd.edu id AA23445
  5.   (5.65c/IDA-1.4.4 for ntp-list); Sun, 1 May 1994 10:05:23 -0400
  6. Received: from frogpond.rutgers.edu by ni.umd.edu with SMTP id AA23441
  7.   (5.65c/IDA-1.4.4 for <ntp@ni.umd.edu>); Sun, 1 May 1994 10:05:17 -0400
  8. Received: by frogpond.rutgers.edu (5.59/SMI4.0/RU1.5/3.08) 
  9.     id AA04620; Sun, 1 May 94 10:05:05 EDT
  10. Date: Sun, 1 May 94 10:05:05 EDT
  11. From: Rick Thomas <rbthomas@jove.rutgers.edu>
  12. Message-Id: <9405011405.AA04620@frogpond.rutgers.edu>
  13. Subject: Preliminary FAQ -- send updates to rbthomas@rutgers.edu
  14. Expires: Wed,  1 Jun 1994 00:00:01 EDT
  15. Apparently-To: ntp@ni.umd.edu
  16.  
  17.  
  18. Everybody talks about how we need a FAQ, but nobody does anything about it.
  19. So I decided to do something about it.  Here is the text of several recent
  20. messages that answered questions that everyone agrees should be on a FAQ.
  21.  
  22. Send updates to me --
  23. Please write it up in a form I can include in the FAQ, and I'll include it.
  24.  
  25. Note, This is a "non-fat" FAQ.  I include stuff from other people that
  26. I think is applicable.  I include it as it comes to me, warts and all.
  27. I don't usually write things myself because I don't have the time.  I
  28. don't usually edit things unless I write them myself.
  29.  
  30. Because of the un-edited format, you should read the *whole thing*
  31. before you act on anything you read here.  Frequently, later items
  32. contain corrections to earlier items.  I have tried to group related
  33. items together, but sometimes that is not possible.
  34.  
  35. This was last updated $Date: 1994/05/01 05:30:41 $
  36.  
  37. I post the accumulation once a month.
  38.  
  39. It's rough but ready.
  40.  
  41. ========================================================================
  42. Rick Thomas, Manager Supercomputer Remote Access Center
  43. Rutgers University, College of Engineering
  44. Internet: rbthomas@jove.rutgers.edu
  45. UUCP: {any backbone site}!rutgers!rbthomas
  46. ========================================================================
  47.  
  48. Standard disclaimers apply.  All messages quoted here are the opinions
  49. of their respective authors, and do not necessarily represent the opinions
  50. (if any) of their respective employers, or of the compiler of this FAQ.
  51. If you act on the advice contained herein you do so at your own risk.
  52. Nobody involved makes any warranty.
  53.  
  54. =============================================================================
  55. From: iglesias@draco.acs.uci.edu (Mike Iglesias)
  56. Subject: Re: xntpd: previous time adjustment didn't complete
  57.  
  58. rtc@icf.hrb.com (Rob Callahan) writes:
  59. >I am also getting lots (I mean lots) of these messages on all Suns running
  60. >xntpd as a client. An example of the /usr/adm/messages file follows:
  61. >
  62. >Feb 24 10:03:21 lilith last message repeated 48 times
  63. >Feb 24 10:03:30 lilith xntpd[535]: Previous time adjustment didn't complete
  64.  
  65. Make sure you run tickadj on your Suns before you run xntpd.  Here's
  66. how we run tickadj:
  67.  
  68.    tickadj -A -s -q -t 9999
  69.  
  70. You can leave off the -t 9999 if you want.  We find that our Suns drift
  71. less with that setting.
  72.  
  73. Also, if you don't use a window system on the console, the slow console
  74. proms will make the system loose interrupts and the time will drift.
  75.  
  76. We *really* need a FAQ for this list.  This question gets asked several times
  77. a month.  :-(
  78.  
  79. =============================================================================
  80. From: glenn@athena.cs.uga.edu (Glenn F. Leavell)
  81. Subject: Re: xntpd: previous time adjustment didn't complete
  82.  
  83. I recently worte:
  84.  
  85. >We're using xntp3 to broadcast the time on our campus network.  Client
  86. >machines accross the network "listen" for the time by running xntpd as:
  87. >
  88. >               xntpd -b -f /etc/ntp.drift
  89. >
  90. >Recently, some of our Sun4 users (SunOS 4.1.1) have reported seeing the
  91. >error:
  92. >
  93. >               xntpd: previous time adjustment didn't complete
  94. >
  95. >in their syslogs.  What would normally cause such a message?  Is it serious?
  96.  
  97.  
  98. Thanks very much to everyone who responded to my question (both via e-mail
  99. and directly to the net.)  The consensus seems to be that the Sun clock
  100. is a very bad one.  I was already using 'tickadj -A' to set the value
  101. of tickadj to an optimal value in the running kernel.  However, a couple
  102. of other paramaters are also useful (and most likely necessary):
  103.  
  104.         tickadj -A -s -t 9999
  105.  
  106. The -s option sets the value of dosynctodr to zero in the running kernel.
  107. This has the effect of telling the OS to stop trying correct the clock's
  108. drift (the work is left for xntp!).  The -t 9999 option sets the value
  109. of tick in the running kernel to 9999.  According to several of the responses
  110. I received, this is a good value for most Suns.  However, I have not seen
  111. a complete list.
  112.  
  113. Thanks again for the help.
  114.  
  115. =============================================================================
  116. From: iglesias@draco.acs.uci.edu (Mike Iglesias)
  117. Subject: Re: ntpdate: errors when trying to synch to other xntp hosts
  118. Keywords: ntpdate xntp3
  119.  
  120. art@cs.UAlberta.CA (Art Mulder) writes:
  121. >  For the most part, everything runs fine, but on some of our
  122. >  workstations we get: ``no server suitable for syncronization found''
  123. >  when ntpdate runs.
  124.  
  125. Make sure those systems can convert hostnames to IP addresses at that point
  126. (i.e. make sure everything necessary to use nameservers is up and running
  127. if you are using them), and that any routing that needs to be setup is in
  128. place before you run ntpdate.  
  129.  
  130. > The only solution I have found is to to pick some different hosts for 
  131. > ntpdate.  
  132.  
  133. Maybe those hosts can get to the servers that work but not the other ones,
  134. as I mentioned above.
  135.  
  136. >ps: It would be really nice if some central version numbering scheme 
  137. > were set up for xntp3.  It would sure make it easier to track.  
  138.  
  139. YES!  PLEASE!
  140.  
  141. =============================================================================
  142. From: Mills@UDEL.EDU
  143. Subject: Re:  NTP peers
  144.  
  145. chongo,
  146.  
  147. I do not have the resources to provide individual configuration advice
  148. for a specific installation - there are many thousands of them now. The
  149. ntpd (version 1) distribution has been obsoleted twice over and been
  150. replaced by NTP Version 3. A comprehensive Unix daemon is available
  151. in the compressed tar archive pub/ntp/xntp3.tar.Z on louie.udel.edu.
  152. It includes scads of information on installation, configuration and
  153. peer selection. Other files in the pub/ntp/doc directory on that host
  154. contain probably more than you will ever care to know about timekeeping
  155. in general and, in particular, the file clock.txt, which contains a
  156. list of public stratum-1 and stratum-2 time servers. Happy chime.
  157.  
  158. Dave
  159.  
  160. =============================================================================
  161. From: jones@hermes.chpc.utexas.edu (William L. Jones)
  162. Subject: Just a few small suggestions!
  163.  
  164.  
  165. Thanks! 
  166.  
  167. We really need a faq for comp.protocols.time.ntp.
  168.  
  169.  
  170. When you talk about using tickad on a sun you need to mention that
  171. if you are running Sun OS 4.1.3 you don't need the "-t 9999" on tickadj.
  172.  
  173. Bill Jones
  174.  
  175. =============================================================================
  176. From: geertj@ica.philips.nl (Geert Jan de Groot)
  177. Subject: Re: Reachability keeps resetting zero after a STEP
  178.  
  179. joey@tessi.com (Joey Pruett) writes:
  180.  
  181. >I just recently started trying to use ntp on my sun systems.  I've
  182. >compiled the xntp3 stuff from louie.udel.edu and things kinda run.  The
  183. >behavior I am seeing is that everytime a STEP is performed, all the
  184. >servers I talk to have their reachability reset to 0 and everything
  185. >starts over again.  This even happens to the LOCAL_CLOCK I configured
  186. >into the server.  Any help would be greatly appreciated.  I don't
  187. >understand much about ntp yet, so I am probably not understanding
  188. >something...
  189.  
  190. I have the same problem, but after a note from Dave it now seems to be
  191. solved. Dave, please correct me if I am wrong, and maybe it is a good idea
  192. to include it in the notes files..
  193.  
  194. The first problem is that SUNs have too much tolerance on their clocks.
  195. Because NTP requires removal of synchonisation to the built-in
  196. NVram clock (that is where tickadj -s option is for, to reset dosynctodr).
  197. Now your SUN really starts drifting, and ntp tries to get up with
  198. that, but because the clock error is high (several hundreds of ppm),
  199. NTP does not succeed at first, and it takes a few days to adjust.
  200. In that time, the SUN will frequently loose synchonisation , which
  201. you can determine by looking at the status words in your log file,
  202. combined with appendix A of RFC1305.
  203. Hence, it is a bad idea to have the SUN synchonize anything else.
  204. Wait for things to stabilize first!
  205.  
  206. The approach I used is to start xntpd on a new machine (as slave - I didn't
  207. want to confuse the server I used), wait for two or three days, and then
  208. check /etc/ntp.drift. Because xntpd raises or lowers the drift value only a 
  209. few ticks per hour, at first xntp is not able to correct the frequency
  210. error. After a while, the time error between your clock and the reference
  211. gets higher and higher and xntpd starts to complain:
  212. >08:21:56 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.177012563)
  213. >08:23:00 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.248992682)
  214. >08:24:06 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.248992682)
  215. >08:25:08 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.404627085)
  216. >08:26:12 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.404627085)
  217. >08:27:16 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.404627085)
  218. >08:28:20 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.577525616)
  219. >08:29:24 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  220. >08:30:28 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.759768605)
  221. >08:31:34 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  222. >08:32:36 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  223. >08:33:40 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  224. >08:34:44 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  225. >08:35:48 xntpd: adjust: STEP dropped (16.1.0.22 offset 0.757438898)
  226. Then, after a while, some hold-off timer times out and the time is
  227. SET, no longer ADJUSTED. This is what you see:
  228. >08:36:52 xntpd: adjust: STEP 16.1.0.22 offset 0.821858644
  229. As a result, xntpd declares itself invalid and starts to synchonize:
  230. >08:36:53 xntpd: system event 5 status c043
  231. >08:36:54 xntpd: peer 130.43.2.2 event 84 status 9024
  232. >08:36:54 xntpd: system event 4 status c655
  233. >08:36:54 xntpd: peer 129.189.134.11 event 84 status 9024
  234. >08:36:55 xntpd: peer 127.127.1.5 event 84 status 8024
  235. >08:37:56 xntpd: peer 16.1.0.22 event 84 status 9024
  236. After a while, xntpd synchonizes again and declares healthy again:
  237. >08:42:13 xntpd: system event 3 status 664
  238. and the thing starts over again. In time, these events happen less and
  239. less often, until the drift value is close enough that xntpd is able
  240. to steer the local time within its limits.
  241.  
  242. The basic idea is to sit on your hands for a few days, don't use the
  243. server (yet) to synchonize others, and see what ntp.drift does.
  244.  
  245. I find your steps quite huge. Did you run tickadj -As before you started
  246. xntpd? 
  247.  
  248. After that, your offset is probably still too large. Start ntpq, do 'rv'
  249. and look for the frequency offset. Divide by 1000 to get the real
  250. frequency error in ppm, which should be less than +-100 ppm.
  251. Now, you should vary the 'tick' value of tickadj to make the frequency
  252. error (the value in /etc/ntp.drift), or (rv / 1000), less than +-100.
  253. You will find that xntpd synchonizes much more quickly - in my case,
  254. it needed only one time STEP. Suitable values for tick are 9999 +-2
  255. or so. I found that sun4/60's are nearly similar to each other, 
  256. sun4/280's too, but there is a severe difference between these families.
  257. It seems that there is a difference in mechanism between sunos 4.1.2
  258. and sunos 4.1.3, but I have not found the details in my news archive.
  259.  
  260. This is as far as I am now - I'm adjusting tick for various machines.
  261. xntpd no longer complains about time STEPs. 
  262.  
  263. I stress that this knowledge is not my wisdom - Dave Mills helped a lot,
  264. and I am just describing the experience I got by following Dave's hints.
  265. In return, I hope that this message helps others too. Would an xntp
  266. guru care to correct my story? Then, it might be Americanized (I'm
  267. no native English speaker, but you already figured that out :-),
  268. and maybe this information can be added to the xntpd documentation.
  269. I am glad I am not the only one that had the problems you have.
  270. Dave, thanks!
  271.  
  272. Warning: clock hacking is very addictive. On the other hand, I find it
  273. much fun, so you might want to become addicted too!
  274.  
  275. Hope this helps,
  276.  
  277. Geert Jan
  278.  
  279. =============================================================================
  280. From: corrigan@weber.ucsd.edu (Michael J. Corrigan)
  281. Subject: Re: Preliminary FAQ -- send updates to rbthomas@rutgers.edu
  282.  
  283. A question I have answered by email a couple of times is:
  284. "My newly installed version 3 xntp can't talk to any of the systems
  285. it used to talk to. What's wrong ?"
  286.  
  287. You need a line like:
  288. peer    host.dom.top    version 2
  289.  
  290. if the host is still running version 2.
  291.  
  292. =============================================================================
  293. From: folta@cs.umd.edu (Wayne Folta)
  294. Subject: Re: Preliminary FAQ -- send updates to rbthomas@rutgers.edu
  295.  
  296. >Make sure you run tickadj on your Suns before you run xntpd.  Here's
  297. >how we run tickadj:
  298. >
  299. >   tickadj -A -s -q -t 9999
  300. >
  301. >You can leave off the -t 9999 if you want.  We find that our Suns drift
  302. >less with that setting.
  303.  
  304. I read in c.p.t.ntp that Sun OS 4.1 -- Sun OS 4.1.2 have an off-by-one
  305. bug that requires -t 9999 to fix. Sun OS 4.1.3 and beyond do not have
  306. this problem, is is said.
  307. -- 
  308.  
  309.  
  310. Wayne Folta          (folta@cs.umd.edu  128.8.128.8)
  311.  
  312. =============================================================================
  313. From: rbthomas@frogpond.rutgers.edu (Rick Thomas)
  314. Subject: Re: Using xntp without radio clock or internet connection?
  315. Keywords: clock ntp internet
  316.  
  317. Eric.Boehm@union.edu writes...
  318. > We would like to set up time synchronization for a network of ~500
  319. > hp9000-700 workstations. Unfortunately we don't have a connection to
  320. > the internet (yet) nor do we have a radio clock. Is there any way to
  321. > fool xntpd into thinking it is a stratum 1 server?
  322. > Other solutions or suggestions would be appreciated (I am also looking
  323. > at timed).
  324.  
  325. Well, here's one way...
  326.  
  327. In xntp (both v2 and v3) there is a pseudo-radio-clock driver that uses
  328. the CPU's own local clock as its time source.  Read the docs for how to
  329. compile with this feature turned on.  (In v2 you set "-DREFCLOCK
  330. -DLOCALCLOCK" in the Config file.  I'm not sure what you do for v3, but
  331. it's probably pretty much the same.) That pseudo-clock can be
  332. configured so that it appears to be at any given stratum from 1 to 15.
  333. Pick one "master" system, and one "backup" system.  Configure the
  334. "master" so that its local clock is at stratum 10 and the backup system
  335. so that its local clock is at stratum 12.  The master and backup have
  336. their ntp.conf files set up to talk to each other as "peer"s, and all
  337. the rest of the systems' ntp.conf files use both the master and backup
  338. as "server"s.  With that configuration, the master will free-run and
  339. all other clocks on the local net (including the backup) will track the
  340. master at stratum 11; unless the master goes down, in which case they
  341. will track the backup at stratum 13 and the backup itself will
  342. free-run.  You use different stratum numbers for the master and backup
  343. so the clients don't have two equally attractive choices, each with a
  344. different idea of what time it is.
  345.  
  346. Thanks to Cary Gray for pointing out that the master and backup need to
  347. be separated by 2 strata, not 1.  The reason is (in Cary's words):
  348.  
  349. > If you configure the local clock for host A a stratum 6 and for B at
  350. > stratum 7, and A and B peer, then B's peers are:
  351. >   A at stratum 7 [sync'd to A's clock at stratum 6]
  352. >   B's clock at stratum 7
  353. > For any of the NTP implementations, B is almost certain to prefer the
  354. > second peer, which will have lower dispersion and synchronizing distance
  355. > (unless you've done some very careful work with the fudge factors).
  356. >
  357. > I learned this the hard way using ntpd back at Stanford.
  358. >    Cary
  359.  
  360.  
  361. When you finally get a radio clock, it will be at stratum 1 and will
  362. automatically take over as the most attractive source.  If you connect
  363. it to your "master", you don't need to change anything (except to turn
  364. on the appropriate driver).  You can even leave LOCALCLOCK configured
  365. on the master at stratum 10 as a backup to the radio clock incase it
  366. goes down.  If you put the radio clock on another system, you need to
  367. make the obvious changes to the ntp.conf files to have all systems
  368. (including the master and backup) use that machine as (yet another)
  369. server.
  370.  
  371.  
  372. If you get an internet connection instead of a radio clock, then have
  373. your master and backup talk (as clients) to a couple of stratum 1 or 2
  374. hosts on the internet (for redundancy, use a different couple of
  375. servers for the backup from the couple you chose to serve the master.)
  376. Leave LOCALCLOCK configured at stratum 10 and 12 as backups incase the
  377. internet connection dies.  Leave everybody else unchanged, as clients
  378. of the master and backup machines.  That keeps the traffic to the
  379. internet stratum 1 or 2 server down to a minimum.
  380.  
  381. Best of all is to combine the two approaches; have *both* an internet
  382. connection *and* a radio clock.
  383.  
  384.  
  385. That should do it.
  386.  
  387. Enjoy!
  388.  
  389. Rick
  390. =============================================================================
  391. From: ariel@world.std.com (Robert L Ullmann)
  392. Subject: Re: Using xntp without radio clock or internet connection?
  393.  
  394. I cringe every time I see someone talking about configuring a local-clock
  395. (self-referential clock) at strata like 3 or 4. If you are going to
  396. do it, use 10 and 11 (or similar); it will work perfectly well,
  397. but you don't run the risk of confusing systems that can see your
  398. clocks as well as _real_ strata 3 or 4 sync'd to active radio
  399. clocks.
  400.  
  401. I'd like to see the code fixed to prevent configuring local-clock
  402. at less than 10. Or better, increasing infinity to 31, and specifying
  403. min local-clock as 16; so a strata of 15 or less implies _real_
  404. time reference. (Whatever _real_ is! :-)
  405.  
  406. My implementation uses 31 as infinity; as long as the code is careful
  407. not to adjust the clock using samples that had strata larger than the
  408. (immediately) previous sample from the peer, you don't suffer bogus
  409. adjustments as the servers wander out to infinity. (This is a good
  410. idea regardless of the value of infinity.)
  411.  
  412. Writing an independent implementation to the written specification
  413. without reference to the PD source is instructive; there are real
  414. holes in the protocol specification, as well as interesting improvements
  415. available to things like the filter algorithm. (Yes, I will be telling
  416. about various things I've found as I get time to do it. :-)
  417.  
  418. Rob
  419.  
  420. --
  421. Robert Ullmann        Ariel@World.STD.COM    +1 508 879 6994 x226
  422. =============================================================================
  423. From: joey@tessi.com (Joey Pruett)
  424. Subject: What I've learned about sun clocks and ntp
  425. Organization: Test Systems Strategies, Inc., Beaverton, Oregon
  426.  
  427. This is all my opinion about how things work (or should work) and are
  428. by no means authoritative.  I assume that the reader understands how to
  429. create the configuration file and have read about tickadj.
  430.  
  431. This is the procedure that I've come up with to get the clock on
  432. a sun system working pretty well.  It is a sun 4/670 running
  433. 4.1.2.
  434.  
  435. # tickadj -s -a 5
  436.     This stops the system from resetting the clock from the hardware
  437. clock.  If you don't do this, ntp and the hardware clock fight over
  438. the correct time.  It also sets the adjtime step to 5 usec which
  439. allows ntp to make a change of 500 usec/sec.
  440.  
  441. # ntpdate server [server...]
  442.     This will set the clock to a semi-sane value.  Try to use more
  443. than 1 server.
  444.  
  445. # xntpd
  446.     The ntp server (duh!).  Let it run for at least a day, if not
  447. longer.  Over that time it should be able to figure out how bad your
  448. clock is.  This value is recorded in the driftfile (usually
  449. /etc/ntp.drift) and is updated once an hour.  Monitor this and when it
  450. seems to have stabilized for a couple hours, you should be ready.  Kill
  451. the ntp server when you're ready to fiddle with things.
  452.     Now the value you will want to use for 'tick' is 10000 + int(drift/100).
  453. So if your drift is 213.64, then tick should be 10002, -172.12 would be
  454. 9999.  Edit the driftfile and remove the hundreds part, so the examples
  455. would be 13.64 and -72.12.  I decided that I like having a positive
  456. adjustment, so I add 1 more to tick if the value is still negative, and
  457. then update the driftfile to be 100+olddrift.  So, my example of
  458. drift=-72.12, tick=9999 gets turned into drift=27.88, tick=10000.
  459.     If the absolute value of drift is not > 100, then you can just use
  460. 10000 for tick.
  461.  
  462. # tickadj -s -a 1 -t <tick value>
  463. # xntpd
  464.     Run these and also update rc.local to do the same.
  465.  
  466. After doing this, ntp will be able to make change things up to
  467. 100 usec/sec and the changes can be as small as 1 usec.  This keeps
  468. the time as accurate as possible by not accumulating adjustments
  469. until large enough to call adjtime().
  470.  
  471. And now a question.  In the kernel, there is a variable called
  472. 'clkdrift' that looks like it might be a trim value.  It seems
  473. like things would work much nicer if the kernel could always
  474. be trimming the clock rather than having ntp adjtime() every
  475. second.  Does anybody now how this variable is used?
  476.  
  477. Hopefully, I haven't made a horrible error in my method, or in
  478. my description of it...
  479.  
  480. =============================================================================
  481. From: sam@ug.uk.sun.com (Sam Pierson)
  482. Subject: Summary: NBS NIST PSTI WWV WWVB GOES
  483. Organization: Sun Microsystems (UK) Ltd
  484.  
  485. Thanks to all who answered my post about these acronims.  I have
  486. summarised all the info I received below in case anyone is interested
  487. in using it in the forthcoming FAQ.  I make no claims to the accuracy
  488. of the information, I just collated it.  Thanks go to Chris Polk, David
  489. B. Brown, Ross Alexander and Ian Phillipps.
  490.  
  491. -Sam.
  492.  
  493. ----
  494.  
  495.  
  496. BIH    Bureau International d'Huere
  497.  
  498.     Organization in Paris France, that keeps track of world time.
  499.  
  500. GOES    Geosynchronous Orbiting Environmental Satellite
  501.  
  502.     A set of satellites that provides weather satellite imaging for
  503.     the North American continent. GOES satellites also provide a
  504.     timecode that is NIST-traceable and is uplinked by NOAA
  505.     (operators of GOES) at Wallops Island, NC.  Can be received by
  506.     very simple equipment. Carrier is around 137 Mhz.  Accuracy
  507.     is in the lower milliseconds.
  508.  
  509. GPS    Global Positioning System
  510.  
  511.     A satellite navigation system usable for accurate timekeeping,
  512.     Its accuracy range is normally about 100 nanoseconds and the 3D
  513.     coverage is getting close to the desired 24 hours a day.
  514.  
  515. NBS    National Bureau of Standards.
  516.  
  517.     This is the old name for the NIST.
  518.  
  519. NIST    National Institute of Standards and Technology
  520.  
  521.     A department of the US Department of Commerce.
  522.     Headquarters in Boulder, Co.
  523.     Responsible for maintaining reference physical standards such
  524.     as time, meter, kg etc.
  525.     The civilian counterpart of the USNO (see below).
  526.  
  527. PSTI    Precision Standard Time Inc.
  528.  
  529.     A company that produces a WWV[B] tracking timepiece.
  530.  
  531. UNSO    United States Naval Observatory
  532.  
  533.     Keepers of UTC (Universal Coordinated Time).
  534.  
  535. WWV    Radio station call sign.
  536.  
  537.     American radio station run by the NIST that broadcasts standard
  538.     time frequency (and weather ?) information on 2.5, 5, 10, 15,
  539.     and 20 MHz from Fort Collins, Colorado.
  540.  
  541. WWVB    Radio station call sign.
  542.  
  543.     60Khz version of WWV.
  544.     Sited in Washington DC (?)  [Actually Ft Colins CO]
  545.  
  546. WWVH    Radio station call sign.
  547.  
  548.     Hawaii station of WWV service.
  549.  
  550.  
  551. ---
  552.    Sam Pierson -- European Support Services, SunSoft Inc. High Wycombe, UK.
  553.         Internet: Sam.Pierson@Sun.COM   UKnet: sam.pierson@sun.co.uk
  554.          I do not speak for SunSoft, Inc or Sun Microsystems, Inc.
  555.  
  556. =============================================================================
  557. From: John C Sager <jcs@zoo.bt.co.uk>
  558.  
  559. Rick,
  560. Thanks for the FAQ. here are some corrections.
  561.  
  562. > BIH    Bureau International d'Huere
  563.  
  564. >    Organization in Paris France, that keeps track of world time.
  565.  
  566.  
  567. Bureau International de L'Heure
  568.                         ^
  569. I believe that this has now become part of the International Bureau
  570. of Weights & Measures (IBWM), another acronym for the list.
  571.  
  572. > GPS    Global Positioning System
  573.  
  574. >    A satellite navigation system usable for accurate timekeeping,
  575. >    Its accuracy range is normally about 100 nanoseconds and the 3D
  576.                                              ^^^
  577. >    coverage is getting close to the desired 24 hours a day.
  578.  
  579. Make that several hundred ns, due to the effect of Selective Availability.
  580. The absolute maximum should be < 1us.
  581. I believe the spec on |(GPS time - UTC) modulo 1 sec| is < 176ns for the
  582. case where S/A is compensated (military kit).
  583.  
  584. > UNSO    United States Naval Observatory
  585.    ^^?
  586. >     Keepers of UTC (Universal Coordinated Time).
  587.  
  588. Not really. The IBWM keep UTC as a synthesis of UTC clocks kept by USNO
  589. NPL (National Physical Laboratory (UK)), and other organisations in France,
  590. Germany, Russia & other places. There is generally some small difference
  591. between all these national standards. I understand GPS will be the vehicle for
  592. significantly reducing these differences.
  593.  
  594. regards,
  595. John
  596.  
  597. =============================================================================
  598. From: Mills@UDEL.EDU
  599. Subject: Re:  Need a reference clock
  600.  
  601. Dorian,
  602.  
  603. Tired ticker ncarfuzz.ucar.edu has come victim of oxide plow, while
  604. clepsydra.dec.com has been rehomed to a VAX. Use DNS to resolve its
  605. true address. Ticker dcn5.udel.edu has gone to the great clock in the
  606. sky and several other fuzzbums unnoticed in the swamp have been
  607. eaten by alligators. The remaining ones fuzz on, although some are
  608. grossly overloaded (clock.sura.net and umd1.umd.edu). I would dearly
  609. love to see the fuzzbums retired and replaced with modern silicon,
  610. but for various reasons, squeaky time is not a priority issue with those
  611. that count the beans. In any case and in order to avoid overheating 
  612. the tired old silicon and redline DMZs, we should all avoid pecking on
  613. the stratum-1 servers, both fuzz and otherfuzz, unless prepared to
  614. front for a biggish bunch of churlish clients.
  615.  
  616. Please note the file clock.txt changes on about a monthly basis, so
  617. any file that "came with the distribution" is surely long of tooth.
  618.  
  619. Dave
  620.  
  621. =============================================================================
  622. From: ken@SDD.HP.COM (Ken Stone)
  623. Subject: Re: HP version of ntp wanted
  624.  
  625.  
  626. > I need some assistance in locating a version of ntp/ntpd for HP-UX V8.x,
  627. > would you be able to point me in the right direction.
  628.  
  629. The standard xntp3 code works just fine with the addition of a seperate
  630. daemon (adjtimed) to compensate for the lack of adjtime(2).  Pick up
  631. the code from louie.udel.edu.  I have it running on over 350 8.X HP-UX
  632. machines on this site alone ... s300/s700/s800 all work.
  633.  
  634.   -- Ken
  635.  
  636. =============================================================================
  637. From: rbthomas@frogpond.rutgers.edu (Rick Thomas)
  638. Subject: Re: 3 or 9 Internet NTP servers?
  639. Organization: Rutgers Engineering Supercomputer Lab
  640.  
  641. ^% The DEC documentation says:
  642. ^% "If your site is connected to the Internet, you should configure three
  643. ^% (but no more than three) NTP primary servers at your site that
  644. ^% synchronize to three highly accurate (stratum 1 or stratum 2) hosts on
  645. ^% the Internet."
  646. ^% 
  647. ^% I may be having a brain fart, but this seems ambiguous.  Does
  648. ^% each local NTP primary server use three different Internet servers or
  649. ^% the same three?
  650.  
  651. Well, one way of doing it is to have 3 onsite primaries (stratum 3, say)
  652. connected to 4 offsite servers (stratum 2, say) as follows
  653.  
  654. onsite-1 is client of offsite-a, offsite-b, offsite-c,
  655.     and peer to onsite-2, onsite-3
  656. onsite-2 is client of offsite-a, offsite-b, offsite-d,
  657.     and peer to onsite-1, onsite-3
  658. onsite-3 is client of offsite-b, offsite-c, offsite-d,
  659.     and peer to onsite-1, onsite-2
  660.  
  661. This spreads your load around and gives you a little extra redundancy, but
  662. not enough to cause severe confusion.  Peering onsites with fellow-onsites
  663. makes sure you get consistent time amongst them.
  664.  
  665. Enjoy!
  666. Rick
  667. ============================================================================
  668. From: wai@socs.uts.EDU.AU (Wai Yat Wong)
  669. Subject: Re: Help --- xntpd[122]: Previous time adjustment didn't complete ?
  670. Organization: School of Computer Science, UTS
  671.  
  672. A great thank you to  Anthon Ouwendijk <ouwendyk@prso.pttnwb.nl>
  673.  
  674. I now have an answer .
  675.  
  676. Anthon emailed me and explained the following:
  677.  
  678. |> All my workstations here that are running 'xntpd -b'
  679. |> occasionally have these console messages:
  680. |> 
  681. |> xntpd[122]: Previous time adjustment didn't complete
  682. |> 
  683.  
  684. You have Sun workstations, haven't you?
  685.  
  686. Maybe this is what you are looking for ...
  687.  
  688. SunOS 4.1.x has a lousy software clock: clock ticks are lost,
  689. and it contains other bugs too.
  690. Therefore SunOS adjusts its software clock to the battery-backup clock
  691. and this plays havoc with the operation of xntpd. (Two captains on
  692. a single ship, fighting for clock-control).
  693.  
  694. So, on SunOS you have to call 'tickadj -s' (see man-page) after
  695. booting. Tickadj -s turns off the kernel parameter dosynctodr,
  696. that controls SunOS synchronizing to its hardware clock.
  697. The lousy software clock will be adjusted by xntpd.
  698.  
  699. So .... add the following lines to your ntprc file:
  700.  
  701. if [ ! -x <your-path>/tickadj ]
  702. then
  703.         echo    "NTP error, file tickadj missing." >&2
  704.         exit 0
  705. fi
  706. <your-path>/tickadj -s -q
  707.  
  708. Thanks again, Anthon , all the way from the Netherlands.
  709.  
  710. ============================================================================
  711. From: mrapple@quack.kfu.com (Nick Sayer)
  712. Subject: Re: Help --- xntpd[122]: Previous time adjustment didn't complete ?
  713. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  714.  
  715. wai@socs.uts.EDU.AU (Wai Yat Wong) writes:
  716.  
  717. ><your-path>/tickadj -s -q
  718.  
  719. While you're at it, that ought to be
  720.  
  721. <your-path>/tickadj -Aqs
  722.  
  723. This will also have tickadj compute and install an appropriate value
  724. for tickadj, which allows xntpd to work around a bug in most kernels
  725. having to do with the precision with which adjtime()s are applied
  726. to the clock. See notes.me for more info.
  727.  
  728. =============================================================================
  729. From: rbthomas@frogpond.rutgers.edu (Rick Thomas)
  730. Subject: Re: what are the /etc/ntp.drift units?
  731.  
  732. >> What are the units of the /etc/ntp.drift file value?  ...
  733. >> What I want is some way to sanity check a drift value.  I have systems
  734. >> that lose about 1.1 seconds per day when left to run on their own.
  735. >> What might I expect the drift value to be?
  736. >> 
  737. >> chongo <> /\oo/\ 
  738.  
  739. I heard a rumor that the units changed between xntp and xntp3.  The
  740. rumor went on to say that in xntp (v2 of the protocol) the drift in the
  741. drift file is to be divided by 4096 to get parts per million. I.E.
  742. microseconds of drift per second of time.  The rumor went on further
  743. and said that in xntp3 (v3 of the protocol) the units had changed so
  744. that one could read the contents of ntp.drift directly as parts per
  745. million.  I think (degree of verification now less than rumor) that ntp
  746. (v1 of the protocol) used the same units as xntp (v2).
  747.  
  748. Nick Sayer <mrapple@quack.kfu.com> sent me some corrections to my rumor...
  749. % Not quite. The drift file under v2 is 4096 parts per unit, not per
  750. % million. So divide by 4096 and multiply by 1e6 and you get
  751. % parts per million.
  752.  
  753. And Louis A. Mamakos <louie@ni.umd.edu> sent the following addition
  754. %
  755. % Off the top of my head, I believe that ntpd uses the same units as
  756. % xntpv2 does.  The format of the file is slightly different, as I
  757. % recall, as the last few computed samples (one per hour) are recorded.
  758. % This is from memory; we run xntp3 now and I don't recommend ntpd for
  759. % any new applications.
  760.  
  761. To which Dave Mills <Mills@udel.edu> adds
  762. %
  763. % The units in the file are in ppm, but the units shown in ntpq are 1000 times
  764. % that amount or in parts in 10^9. Life lurches on.
  765.  
  766. And Lars Mathiesen (U of Copenhagen CS Dep) <thorinn@diku.dk> adds
  767.  
  768. % Almost ppm. (I should know, I put it in myself.) The actual unit is
  769. % 2**-20 (a pure number, or seconds per second if you like). I was also
  770. % surprised by the multiply-by-1000 behaviour of ntpq, which is a legacy
  771. % of the Fuzzball era, I think
  772. % (The old (xntpd v2) code used a 64-bit fixed-point register. I think
  773. % it was effectively in units of 2**-12, since it was shifted by
  774. % CLOCK_FREQ and applied once every four seconds. That is, the value in
  775. % the drift file grew by a factor of 256.)
  776.  
  777.  
  778. There are 86400 seconds in a day, so 100 ppm would be 8.64 seconds per
  779. day.
  780.  
  781. Rick
  782.  
  783. ============================================================================
  784. From: thorinn@diku.dk
  785. Subject:  drift units...
  786.  
  787. The value in the drift file: I was talking of units. To convert the
  788. value in the xntp v3 drift file, in units of 2**-20, to units of ppm
  789. (10**-6), you have to _divide_ the number by 1.048576 (or multiply it
  790. by 0.95367431640625). In other words, the value is about 5% high.
  791.  
  792. If I am right (remember, I am not totally certain of this) the older
  793. implementations expressed the value in units of 2**-12. To get ppms,
  794. divide by .004096, or multiply by 244.140625. Or just say that in the
  795. old format, the number was 256 times smaller.
  796.  
  797. Lars Mathiesen (U of Copenhagen CS Dep) <thorinn@diku.dk> (Humour NOT marked)
  798.  
  799. ============================================================================
  800. From: "Louis A. Mamakos, NTP mailing list maintenance" <NTP-REQUEST@ni.umd.edu>
  801. Subject: NTP mailing list vs NTP netnews
  802.  
  803.  
  804. > Thanks, Louie!
  805. > Incidentally, to what e-mail address should I send the once-a-month FAQ
  806. > so that the ntp mailing-list gets it as well as the
  807. > comp.protocols.time.ntp netnews group.
  808. > Are they gatewayed?  It doesn't seems so, but I can't tell for sure.
  809. > Perhaps you could write something for the FAQ on how readers of the
  810. > netnews group can get connected to the mailing-list.  If you do, I will
  811. > add something about the netnews group for readers of the mailing-list.
  812.  
  813. There is a one-way gateway which causes traffic sent to the NTP
  814. mailing list (NTP@NI.UMD.EDU) to be injected into the
  815. comp.protocols.time.ntp newsgroup.  This is being done at Apple by
  816. Erik Fair.  If I can find some good bidirectional news <-> mail
  817. gateway software, I may consider making a local gateway which operates
  818. in both directions.
  819.  
  820. I encourage all interested parties to read the USENET newsgroup rather
  821. than subscribe to the mailing list.
  822.  
  823. louie
  824.  
  825. AKA: NTP-REQUEST@NI.UMD.EDU
  826.  
  827. ============================================================================
  828. From: wollman@sadye.emba.uvm.edu (Garrett Wollman)
  829. Subject: Re: Previous time adjustment didn't complete
  830. Organization: University of Vermont, EMBA Computer Facility
  831.  
  832. In article <9304201216.ZM25019@hansen> chongo@ncd.com writes:
  833. >What changes should make (if any) when xntpd (V3) issues the following
  834. >syslog message:
  835.  
  836. > Apr 18 14:00:55 hansen xntpd[13203]: Previous time adjustment didn't complete
  837.  
  838. It really depends on the machine you're using.  My machine generally
  839. prints it out only once a day, usually correlated with other system
  840. activity (when I'm re-compiling my kernel, for example, or expiring
  841. news), so I don't worry about it.
  842.  
  843. >How often to 'too often'?  What is 'normal' for a system where all is well?
  844.  
  845. I'll let others answer the first question.  `Normal' is probably `not
  846. at all'; I believe that the messages in my system probably result from
  847. bugs in the interrupt handling code, although I'm not absolutely sure
  848. and I'm not enough of a hardware hacker to look at it and see what
  849. it's doing when this happens.
  850.  
  851. -GAWollman
  852.  
  853. ============================================================================
  854. From: cudep@csv.warwick.ac.uk (Ian Dickinson)
  855. Subject: Re: time going backwards
  856. Date: 18 May 93 14:03:09 GMT
  857.  
  858. In article <C70Dou.6D5@olsen.ch> lindy@olsen.ch (Lindy Foster) writes:
  859. >I expected the behaviour to be more like date -a, where the
  860. >system clock is _gradually_ slowed down using adjtime so there is no
  861. >backwards time jump.  This is really important to us, as we receive real
  862. >time data which is date stamped on arrival, and a consistent forward flow
  863. >of time is critical.  
  864.  
  865. I'm making the assumption that it only does this relatively soon after
  866. booting.  If this isn't the case, I think you may have other problems.
  867.  
  868. The best workaround is to run ntpdate as early as possible in the boot
  869. sequence, sleep for however many seconds it would take for the adjtime
  870. call to succeed, call nntpdate again to do some finer adjustment, sleep
  871. again, and then start xntpd.  For instance (culled from README.solaris2):
  872.  
  873.   tickadj -s -a 1000
  874.   ntpdate -v server1 server2
  875.   sleep 20
  876.   ntpdate -v server1 server2
  877.   sleep 20
  878.   tickadj -a 200
  879.   xntpd
  880.  
  881. Your values for tickadj may need changing.
  882.  
  883. (BTW, the tickadj kernel variable doesn't exist under Solaris 2.2 - what
  884.  should one be doing in this case???)
  885. ============================================================================
  886. From: lichtin@olsen.ch (Martin Lichtin)
  887. Subject: SUMMARY: Weird NTP behaviour (well, maybe not)
  888. Date: 3 Jun 93 14:22:47 GMT
  889. Organization: Olsen & Associates, Zurich, Switzerland
  890.  
  891. My question (basically) was:
  892.  
  893.  > We have a DCF radio clock and are running xtnpd on machine A.  There's
  894.  > also a machine B, not running xtnpd and time off by 250 seconds
  895.  > relative to machine A. I then start up xntpd on machine B (with
  896.  > /etc/ntp.conf containing: "server A") .
  897.  
  898.  > A (date;sleep 2) loop says:
  899.  > Tue Jun  1 18:40:48 MET DST 1993
  900.  > Tue Jun  1 18:40:50 MET DST 1993
  901.  > Tue Jun  1 18:36:43 MET DST 1993
  902.  > Tue Jun  1 18:36:45 MET DST 1993
  903.  > And now, clocks have synchronized. But wasn't this a bit rude?
  904.  
  905. The common answer was that for time deltas greater than CLOCK_MAX =
  906. 128ms, the clock is stepped and then the PLL (Phase-Lock Loop) takes
  907. over.  
  908.  
  909. However, I'm still waiting for someone who knows a way to avoid this
  910. behaviour. Imagine a machine that only receives NTP packets for a few
  911. hours a day. Do I need to set tickadj to a higher value? Can I twiddle
  912. NTP to be less precise and allow correcting bigger offsets?
  913.  
  914. Martin.
  915. ----------------------------------------------------------------------------
  916. The Answers:
  917.  
  918. From: John C Sager <jcs@zoo.bt.co.uk>
  919. To: lichtin@olsen.ch (Martin Lichtin)
  920. Date: Wed, 2 Jun 93 12:18:50 BST
  921.  
  922. Martin,
  923.  
  924. This is the way xntpd is supposed to work. If the error between the
  925. system clock and the reference derived from the peer(s) it is using is
  926. greater than CLOCK_MAX (128ms) then the clock is stepped to get it to
  927. within a few milliseconds, and then the PLL control takes over. I
  928. suspect this is done because the PLL time constant is so long (some
  929. hours) and underdamped to some degree, that it would take a long time
  930. to settle, and the adjustment capability would be exceeded. With the
  931. recommended value for tickadj, the maximum adjustment rate available
  932. is 500us per second. Adjusting at this rate it would take about 5.5
  933. days to remove a 240 second offset, and the daemon would try to
  934. command far greater rates than this. In practice, the frequency error
  935. measured by the daemon would ramp up to a limit of about 390 ppm where
  936. the daemon assumes something is badly wrong and quits.
  937.  
  938. John C Sager                    Mail:    B67 G18, BT Labs
  939. --------------------
  940.  
  941. From: Frank Kardel <Frank.Kardel@informatik.uni-erlangen.de>
  942. To: lichtin@olsen.ch
  943. Date: Wed, 2 Jun 93 13:41:01 +0200
  944.  
  945. Please let the daemon run all the time. Then it will be able to keep
  946. the time with 128ms and all is well. NTP is not designed for casual use.
  947.  
  948. Frank Kardel
  949.  
  950. ============================================================================
  951. From: Mills@UDEL.EDU
  952. Date: 5 Jun 93 19:30:05 GMT
  953.  
  954. Rick & Co.,
  955.  
  956. A few comments on your faq compendium follow. Sorry I don't have the
  957. photonic bandwidth to eyeball the ntp newsgroup directly.
  958.  
  959. All Sun4s I know of have the local oscillator frequency at least
  960. 100 ppm fast, so the -t 9999 argument to tickadj is almost always
  961. required. It is a good idea to get this right, whether 9999 or
  962. something else, as the residual error affects the actual jitter
  963. of the clock, as well as the frequency error should the NTP daemon
  964. be interrupted for some reason. It is always the case that dosynctodr
  965. should be disabled. While I haven't laid paw to SunOS 4.1.3 yet,
  966. I doubt it is any different than 4.1.1 in these areas.
  967.  
  968. Rob Ullmann mentions an untainted implementation ex spec. I would very
  969. much like to hear of such adventures and what holes remain in the
  970. spec. It will also help the case if and when the spec is advanced
  971. beyond the present Draft Standard status. Frankly, my experience in
  972. promoting the present status has left me rather disenchanted with
  973. the standards process, so advancement is not high on my agenda.
  974.  
  975. I don't think you want to meddle with clkdrift; it causes the differenct
  976. between the tod clock and system clock to be displayed, if more than
  977. one tick apart. In fact, if dosynctodr is NOT reset, xntp will not work
  978. at all.
  979.  
  980. Fixup on anachronisms: So far as I know, NIST is headquartered in
  981. Gaithersburg, MD, WWV and WWVB transmitters are at Ft Collins, CO.
  982. Conventional wisdom (as opposed to Politically Correct) is that
  983. USNO keeps the time and NIST keeps the frequency, but each reads
  984. each other's timekeeper's notices. As for GPS time relative to UTC
  985. time, you need to be equally delicate on turf. GPS receivers keep
  986. GPS time as coordinated within GPS and may not split the weenieseconds
  987. with respect to UTC. Without the military codes, GPS users are not
  988. expected to achieve accuracies much better than LORAN-C, allegedly
  989. 0.25 nm or well over a microsecond. Don't believe it; with a good
  990. timing receiver, 5-7 satellite averaging, a decent local timebase
  991. and occasional discipline to LORAN-C, I'm getting better than 100
  992. ns almost all of the time. This is verified by cesium oscillator
  993. calibrated to USNO and is much better than early civilian GPS
  994. receivers.
  995.  
  996. Dave
  997.  
  998. ============================================================================
  999. From: cjj@spdev.east.sun.com (Christopher Jackson - Special Projects)
  1000. Date: 6 Jun 93 14:55:16 GMT
  1001. Organization: Sun Microsystems, Columbia MD
  1002.  
  1003. In article <9306051530.aa08395@huey.udel.edu> Mills@UDEL.EDU writes:
  1004. >All Sun4s I know of have the local oscillator frequency at least
  1005. >100 ppm fast, so the -t 9999 argument to tickadj is almost always
  1006. >required. It is a good idea to get this right, whether 9999 or
  1007. >something else, as the residual error affects the actual jitter
  1008. >of the clock, as well as the frequency error should the NTP daemon
  1009. >be interrupted for some reason. It is always the case that dosynctodr
  1010. >should be disabled.
  1011.  
  1012. This is not quite correct.  While our oscillators are not perfect
  1013. (otherwise there'd be no need for NTP, right? :-) ), the consistent
  1014. 100ppm error is due to software, rather than hardware.  Previous
  1015. versions of SunOS 4.X had a bug where the real-time clock register was
  1016. initialized to one less than the proper value.  The clock interrupt
  1017. thus fired one tick too early, and the system clock gained an extra
  1018. 1us every 10 ms.
  1019.  
  1020. >While I haven't laid paw to SunOS 4.1.3 yet,
  1021. >I doubt it is any different than 4.1.1 in these areas.
  1022.  
  1023. This bug (Sun Bug 1094383) is fixed in SunOS 4.1.3, under which
  1024. the -t 9999 adjustment should no longer be necessary.  (Yes, you
  1025. do still need to disable dosynctodr.)
  1026.  
  1027.  
  1028. Chris Jackson  <cjj@sun.com>
  1029.  
  1030. ============================================================================
  1031. From: aegl@ossi.com (Tony Luck)
  1032. Date: 8 Jun 93 17:42:11 GMT
  1033. Organization: Fujitsu Open Systems Solutions, Inc.
  1034.  
  1035. gdonl@sunrise.ssi1.com (Don Lewis) writes:
  1036. >I'm not so sure it is fixed.  Our two Sparc 2's are running 4.1.2,
  1037. >and with the  -t 9999 adjustment, they are off by 19ppm and 34ppm.
  1038. >Our 10/41 running 4.1.3 without the -t 9999 adjustment is off by 106ppm.
  1039. >This is a small sample, but the 106ppm error is more than I would
  1040. >have expected.
  1041.  
  1042. A few more data points about how far out some Sun4's crystals can be.  Most
  1043. of these are IPXen, with a couple of SPARCstation2's, and a 4/690 and 4/330.
  1044. All are running SunOS 4.1.2
  1045.  
  1046.     ntp.drift    tick
  1047.     =========    ====
  1048.     -89.83615    10000
  1049.     -73.36331    10000
  1050.     -72.51350    9998
  1051.     -66.32201    10000
  1052.     -64.02086    10000
  1053.     -62.21976    10000
  1054.     -55.62454    10000
  1055.     -54.74640    10000
  1056.     -50.99059    10000
  1057.     -6.39066    10000
  1058.     -4.19466    9998
  1059.     -1.12428    9999
  1060.     9.57497        9999
  1061.     12.04364    10000
  1062.     22.07689    9999
  1063.     39.67384    9999
  1064.     51.66208    9999
  1065.  
  1066. >From these numbers, it looks to me like 106ppm is well within the range of
  1067. speeds that Sun4 crystals actually run.
  1068.  
  1069. A while back somebody posted a suggestion of running xntpd for a few days,
  1070. then look at the drift file.  If the absolute value is too big (>100?) then
  1071. kill the xntpd daemon.  If the drift value is negative, you should reduce
  1072. 'tick', if it is positive, then increase 'tick' ... add/subtract 100 to the
  1073. value in the drift file for every point that you change tick, then start a
  1074. new xntpd daemon.
  1075.  
  1076. Sounds like the FAQ should tell people to start at "-t 9999" on pre-4.1.3
  1077. systems ... but be prepared to tune a point or two on all Suns.
  1078.  
  1079. -Tony Luck
  1080.  
  1081. ============================================================================
  1082. From: mrapple@quack.kfu.com (Nick Sayer)
  1083. Date: 10 Jun 93 10:56:31 GMT
  1084. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  1085.  
  1086. gdonl@sunrise.ssi1.com (Don Lewis) writes:
  1087.  
  1088. >In article <1ut0gk$sli@spdev.east.sun.com> cjj@spdev.east.sun.com (Christopher Jackson - Special Projects) writes:
  1089. >>This bug (Sun Bug 1094383) is fixed in SunOS 4.1.3, under which
  1090. >>the -t 9999 adjustment should no longer be necessary.  (Yes, you
  1091. >>do still need to disable dosynctodr.)
  1092.  
  1093. >I'm not so sure it is fixed.  Our two Sparc 2's are running 4.1.2,
  1094. >and with the  -t 9999 adjustment, they are off by 19ppm and 34ppm.
  1095. >Our 10/41 running 4.1.3 without the -t 9999 adjustment is off by 106ppm.
  1096. >This is a small sample, but the 106ppm error is more than I would
  1097. >have expected.
  1098.  
  1099. I think the bug was sun4c specific, but the fix was applied to all
  1100. Sun 4 platforms in 4.1.3. Which means that sun4ms running 4.1.3
  1101. need to have tick incremented by one. sigh.
  1102.  
  1103. The best thing to do is do it on an individual basis. If your clock
  1104. is off by more than 50 ms, increment/decrement tick until it isn't.
  1105.  
  1106. ============================================================================
  1107. From: cjj@spdev.east.sun.com (Christopher Jackson - Special Projects)
  1108. Date: 13 Jun 93 15:26:00 GMT
  1109. Organization: Sun Microsystems, Columbia MD
  1110.  
  1111. In article <f4oiA#N@quack.kfu.com> mrapple@quack.kfu.com (Nick Sayer) writes:
  1112. >I think the bug was sun4c specific, but the fix was applied to all
  1113. >Sun 4 platforms in 4.1.3. Which means that sun4ms running 4.1.3
  1114. >need to have tick incremented by one. sigh.
  1115.  
  1116. Well, it turns out that Mr. Sayer is correct; the bug is not completely fixed
  1117. for sun4m machines.
  1118.  
  1119. The clock initialization for sun4, sun4c, and sun4m platforms was broken in
  1120. 4.1.2.  A fix was made to all three platforms for 4.1.3.  Unfortunately, the
  1121. sun4m clock is a little different from the sun4/sun4c clock, and the fix needs
  1122. to be a little different as well.  The result is that in 4.1.2, sun4 and sun4c
  1123. were 100ppm fast, while sun4m was 50ppm fast; in 4.1.3, sun4 and sun4c are no
  1124. longer broken, but sun4m is 50ppm slow.  (Since it's 50ppm, not 100ppm, you
  1125. can't really fix this with the -t flag.)
  1126.  
  1127. A bug has just been filed on this, and it will hopefully be fixed in a future
  1128. release of SunOS.  In the meantime, the exceptionally brave may wish to try
  1129. the following patch.
  1130.  
  1131. Notes:
  1132.     This patch is for sun4m machines running 4.1.3 only; sun4s and sun4cs
  1133.     don't need it, and applying it to earlier 4.X releases will probably
  1134.     result in a crash.
  1135.  
  1136.     THIS IS NOT AN OFFICAL SUN PATCH; if it trashes your system, melts
  1137.     your disks, or turns your hair green, don't complain to me or to the
  1138.     Answer Center.  Caveat Emptor.
  1139.  
  1140. The patch:
  1141.     cp /vmunix /vmunix.bak
  1142.     adb -w /vmunix
  1143.     startrtclock+2c?W 110007a0
  1144.     startrtclock+34?W 90122480
  1145.     startrtclock+3c?W 912a2009
  1146.     startrtclock+40?W 1000000
  1147.     startrtclock+44?W 1000000
  1148.     $w
  1149.     $q
  1150.     reboot
  1151.  
  1152.  
  1153. If anyone actually tries this, I would be interested to hear how much it helps.
  1154.  
  1155.  
  1156. Chris Jackson  <cjj@sun.com>
  1157.  
  1158. ============================================================================
  1159. From: amoss@picton.cs.huji.ac.il (Amos Shapira)
  1160. Subject: Re: help with ntp
  1161. Date: 26 Jun 93 16:04:34 GMT
  1162. Organization: Inst. of Comp. Sci., Hebrew University, Jerusalem, Israel
  1163.  
  1164. jm@TAO.UNIV-PARIS8.FR (Jean Mehat) writes:
  1165.  
  1166.    I would like which version of ntp, xntp etc... is the most current one?
  1167.    We are running a small network of sun4 on the internet (< 10 machines).
  1168.    I have been said that time synchronisation is an important issue in
  1169.    security. I am somewhat lost between various releases of Network Time
  1170.    Protocol. Can you give me a pointer to the most recent release (like a
  1171.    ftp site & directory) ?
  1172.  
  1173.    --
  1174.    Jean Mehat, universite de Paris 8 Vincennes a Saint Denis,
  1175.    jm@tao.univ-paris8.fr, (1) 49 40 64 03, (1) 49 40 67 83 (fax)
  1176.  
  1177. As far as I followed it,  the most recent *released* version is 3.1,  the
  1178. "home site" of xntp is louie.udel.edu directory /pub/ntp.
  1179. You will find there also some alpha releases of a newer version.
  1180.  
  1181. The drawback of this site is that it is located inside the U.S. and therefore
  1182. you can't take advantage of the DES code it can use (you still can have the
  1183. MD5 code).  A release with DES which is located outside the U.S. is available
  1184. on ftp.csc.liv.ac.uk file /hpux/Networking/xntp-3.1.tar.Z.  This is the one
  1185. I'm running a few months by now and it seems to work greate.
  1186.  
  1187. Cheers,
  1188.  
  1189. --Amos
  1190.  
  1191. ============================================================================
  1192. From: mrapple@quack.kfu.com (Nick Sayer)
  1193. Subject: Re: NTP for Mac?
  1194. Date: 6 Jun 93 16:40:17 GMT
  1195. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  1196.  
  1197. mrapple@quack.kfu.com (Nick Sayer) writes:
  1198.  
  1199. >I remember hearing some time ago about an NTP control panel or INIT
  1200. >for Macs. Is this true? What's it called and where can I ftp it?
  1201. >Thanks in advance.
  1202.  
  1203. Thanks to Randy Bush who not only pointed me towards, but mailed
  1204. me a copy of "Network Time", a control panel that does exactly
  1205. that.
  1206.  
  1207. ============================================================================
  1208. From: Mills@UDEL.EDU
  1209. Subject: Re:  Leap second?
  1210. Date: 30 Jun 93 20:00:25 GMT
  1211.  
  1212. The fuzzballs are now so overloaded that I can't reach in and set the
  1213. leap bits manually. Between the smoke and steam of the xntp-alpha
  1214. stuff, new radio drivers and busted radios, not to mention new kernels
  1215. with leap stuff built in, I decided my bandwidth for this particular
  1216. leap event had been exceeded. Most of the radio services you mention
  1217. already have leap-warning bits and at least some of the clocks (CHU and
  1218. WWVB) do decode them in xntp-alpha. The problem here is that I haven't
  1219. completed the xntp-kernel interface for the kernels I have modified to
  1220. handle the leap event correctly. Standard kernels will of course not
  1221. bump the time until at least one update has been seen from the source.
  1222.  
  1223. Dave
  1224. ============================================================================
  1225. From: warb@tgf.tc.faa.gov (Dan Warburton)
  1226. Subject: Re: ntpdate version 3.1 on HP-UX A.09.01 A 9000/715
  1227. Date: 7 Jul 93 16:28:08 GMT
  1228. Organization: FAA Technical Center, Pomona, NJ
  1229.  
  1230. warb@tgf.tc.faa.gov (Dan Warburton) writes:
  1231.  
  1232. >ringi@x.co.uk (Ian Ringrose) writes:
  1233.  
  1234. >>I having problems getting "ntpdate" to work on a HP-UX 9 system, I have not
  1235. >>set up any config files, but have started "adjtimed".
  1236.  
  1237. >>When I do: 
  1238. >>        # ./ntpdate 128.175.7.4 
  1239. >>I get:
  1240. >>        ./ntpdate: no server suitable for synchronization found
  1241.  
  1242. >>When I do: 
  1243. >>    # ./ntpdate -d 128.175.7.4 
  1244.  
  1245. >Yes, it seems that is might work. I have the same problem. I have 
  1246. >just tested with my Internet firewall down and things seem to work.
  1247. >There must be a back socket that needs access.
  1248.  
  1249. >Is there any one out there that Knows what port and protocal TCP or UPD
  1250. >this back channel might be? I'll check the sources, but would like
  1251. >confirmation of my guess.
  1252.  
  1253. OK, here's my answer: ntp uses a udp back port of 123 on my Internet fire
  1254. wall (a cisco router) my access list needed the following:
  1255.  
  1256.  
  1257. !ntp network time protocal
  1258. access-list 101 permit udp 0.0.0.0 255.255.255.255 155.178.0.0 0.0.255.255 eq 123
  1259.  
  1260.  
  1261. This allows udp access to port 123 from anywhere on the internet to any host
  1262. on my Class B address space. 
  1263.  
  1264. P.S. Maybe this should go into the FAQ?
  1265. --
  1266. Dan Warburton warb@faa.gov warb@tgf.tc.faa.gov warb@pilot.njin.net 
  1267.  
  1268. ============================================================================
  1269. From: dunigan@thdsun.epm.ornl.gov (Tom Dunigan)
  1270. Subject: Re: ntpdate version 3.1 on HP-UX A.09.01 A 9000/715
  1271. Date: 7 Jul 93 20:44:37 GMT
  1272. Organization: Oak Ridge National Laboratory
  1273.  
  1274. In debug mode, ntpdate uses a non-privileged port number for its "source
  1275. UDP port" to do the query.  When not in debug mode, ntpdate uses port 123
  1276. as its source port.  Some systems (Ultrix), or maybe its the xnptd version,
  1277. refuse to reply to the 123-port request.
  1278. -- 
  1279.     Tom Dunigan
  1280.     dunigan@msr.epm.ornl.gov
  1281.  
  1282. ============================================================================
  1283. From: feigin@iis.ee.ethz.ch (Adam W. Feigin)
  1284. Subject: Re: syslog() bogosity
  1285. Date: 29 Jul 93 13:32:36 GMT
  1286. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  1287.  
  1288. jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
  1289.  
  1290. >emcguire@intellection.com (Ed McGuire) writes:
  1291.  
  1292. >>The virtually identical syslog code found in each
  1293. >>of these processes should be consolidated, but before I do that, has
  1294. >>it been cleaned up already in the alpha?
  1295.  
  1296. >Why not in the main ntp*.h include file do a:
  1297.  
  1298. >    #ifdef LOG_DAEMON
  1299. >    #undef LOG_DAEMON
  1300. >    #endif
  1301. >    #define LOG_DAEMON LOG_LOCAL0
  1302.  
  1303. >Or maybe put this in Config...
  1304.  
  1305.  
  1306. Ugh. Its in there already as of xntp-alpha. All you need to do is to
  1307. change the DEFS line in your config file, and add the following:
  1308.  
  1309. -DLOG_NTP=LOG_(insert your favorite syslog facility here)
  1310.  
  1311. Its not really documented in the Config file anywhere, and I can't
  1312. remember where I came across it, but it does work. I just checked, and
  1313. it looks like I gleaned this from the code in xntpd/ntp_control.c
  1314. (line 1724) and xntpd/ntpd.c (line 190).
  1315.  
  1316.                         /AWF
  1317. ============================================================================
  1318. From: ntp-adm@inria.fr
  1319. Subject: NTP FAQ: update for Sony
  1320. Date: Thu, 05 Aug 1993 10:31:25 +0200
  1321. Sender: Alain.Durand@inria.fr
  1322.  
  1323. A little while ago I posted a request for help to run xntdp on Sony News.
  1324. Everybody agreed the answer was worth an entry in the FAQ.
  1325.  
  1326. This is a summary of the answers I got:
  1327.  
  1328. The problem is that Sony boxes do not take care of leap seconds correctly.
  1329. xntpd seems to synchronize well, but the date program pretends the clock
  1330. is 14 seconds off.
  1331.  
  1332. The solution is to remove the MET file in /etc/zoneinfo with all its links
  1333. and to replace it with a good one (sun's for example) and then to 
  1334. restart inetd.
  1335.  
  1336. If you are in another time zone, you might have to change some other files.
  1337.  
  1338. Thanks to:
  1339.  
  1340. Heiko Trautwein <trautwyn@fb3-s7.math.tu-berlin.de>:
  1341. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1342. > hello,
  1343. > on our SONY Workstations ( mips and mc68030 ) we had this problem too,
  1344. > the clock differs 14 or 15 seconds from all the other clocks, if
  1345. > timezone is MET, if you change the timezone to e.g. GMT the clocks
  1346. > are in time.
  1347. > So I think the GMT timezone is corrupt and copied the MET file from
  1348. > one of our Sun's on the Sony, and clocks where synched.
  1349. >
  1350. >    Heiko
  1351.  
  1352. jcs@zoo.bt.co.uk (John C Sager) &  aegl@ossi.com (Tony Luck)
  1353. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1354. > In article <230vca$h66@nym.ossi.com>, aegl@ossi.com (Tony Luck) writes:
  1355. > > durand@nuri.inria.fr (durand alain denis) writes:
  1356. > > 
  1357. > > >I'm trying to install xntp-alpha on various machine on our network.
  1358. > > >It's just fine for sun's, but for sony mips, it's really wierd.
  1359. > > 
  1360. > > I think that this was discussed a couple of months ago ... as far as I recall
  1361. > > the problem is that the Sony systems have a table of the leap seconds so that
  1362. > > that can try to be really clever about telling you the time.  As a result,
  1363. > > they have a different idea of how many seconds there have been since 1970.
  1364. > > This confuses xntp somehow (maybe its date conversion code doesn't match the
  1365. > > libc ctime() stuff?) ... and the net result is that xntp sets the time to
  1366. > > a value that ctime() says is some number of seconds out (depending on how
  1367. > > many leap seconds ctime() is trying to account for).
  1368. >
  1369. > NTP ticks UTC, as do most Unix boxes, so at each leap second, it, and the
  1370. > Unix clock, get stepped appropriately. This is explained at length by Dave
  1371. > Mills in rfc1305 pages 76-79.
  1372. > There was some discussion on this group some time ago as to whether NTP
  1373. > should tick TAI, and the corrections done for leap seconds in the same
  1374. > manner as timezone & DST corrections are currently done (as the Sony
  1375. > box seems to do). At the time I argued that the current system is more
  1376. > convenient for most users, and the small number who need TAI can do the
  1377. > reverse correction at their own expense.
  1378. >
  1379. > > 
  1380. > > Can't recall whether anyone had a fix for this though ... if anyone does, its
  1381. > > probably worth an entry in the FAQ.
  1382. >
  1383. > I would agree an entry in the FAQ migh prevent future puzzlement.
  1384.  
  1385.     - Alain Durand.
  1386. ============================================================================
  1387. From: barrett@lucy.ee.und.ac.za (Alan Barrett)
  1388. Subject: Re: NTP for Novell????????
  1389. Date: 10 Aug 93 00:44:36 GMT
  1390. Organization: Elec. Eng., Univ. Natal, Durban, S. Africa
  1391.  
  1392. MVICKERS@fhcrc.org (Mark F. Vickers) writes:
  1393. > Is there an NTP client for Novell???
  1394.  
  1395. This question should be in the FAQ, but is not there.  I usually email
  1396. replies to this question, but will post this time.
  1397.  
  1398. I don't know of an NTP implementation for Novell, but I do know of two
  1399. ways of synchronising the times of Novell servers using the RFC 868
  1400. time protocol (commonly called "rdate").
  1401.  
  1402. * There is an RDATE NLM from Murkworks that allows the Novell fileserver 
  1403.   to synchronise its time from an rdate server.  Available from
  1404.   ftp://netlab2.usu.edu/misc/rdate.zip
  1405.  
  1406. * Brad Clements' Charon mail/lpr gateway can synchronise its time
  1407.   from an rdate server, and can set the times of the attached Novell
  1408.   fileservers using some Novell method.  Available from
  1409.   ftp://omnigate.clarkson.edu/pub/cutcp/charon
  1410.  
  1411. --apb
  1412. Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
  1413. RFC822: barrett@ee.und.ac.za
  1414. ============================================================================
  1415. From: aegl@ossi.com (Tony Luck)
  1416. Subject: Re: Problems with xntpdc and ntpq in xntp(3.1)
  1417. Date: 12 Aug 93 17:19:07 GMT
  1418. Organization: Fujitsu Open Systems Solutions, Inc.
  1419.  
  1420. cmoore@corazon.mit.edu (Christopher B. Moore) writes:
  1421. >well under control.  But I'm having trouble running ntpq and xntpdc to
  1422. >get a look at what's going on.  Both programs fail with the message:
  1423. >ntp/udp: unknown service.  Can someone suggest what I might have done
  1424. >wrong?
  1425.  
  1426. I think that "ntp" is one of the well known services that Sun forgot to
  1427. put in /etc/services.  Just add the line:
  1428.  
  1429. ntp        123/udp                # Network Time Protocol
  1430.  
  1431. to /etc/services (For some bizarre reason this file is controlled by
  1432. NIS (formerly yellow pages), so if you are in the unfortunate situation
  1433. of using NIS you need to add this line to /etc/services on your server
  1434. and run ypmake/yppush/whatever).
  1435.  
  1436. -Tony Luck <aegl@ossi.com>
  1437.  
  1438. ============================================================================
  1439. From: schoo@cs.rulimburg.nl (Patrick Schoo)
  1440. Subject: Re: Problems with xntpdc and ntpq in xntp(3.1)
  1441. Date: 16 Aug 93 10:08:16 GMT
  1442. Organization: University of Limburg, Maastricht
  1443.  
  1444. aegl@ossi.com (Tony Luck) writes:
  1445.  
  1446. >I think that "ntp" is one of the well known services that Sun forgot to
  1447. >put in /etc/services.  Just add the line:
  1448.  
  1449. >ntp        123/udp                # Network Time Protocol
  1450.  
  1451. >to /etc/services (For some bizarre reason this file is controlled by
  1452. >..
  1453.  
  1454. >-Tony Luck <aegl@ossi.com>
  1455.  
  1456. Sun didn't forget to put ntp in /etc/services, they just use the wrong
  1457. protocol (tcp instead of udp). In my original services file this line
  1458. was included (SunOS 4.1.1).
  1459.  
  1460. ntp        123/tcp                # Network Time Protocol
  1461.  
  1462. Does anyone know if this is a bug, or if there is a specific reason for
  1463. this?
  1464.  
  1465. Patrick Schoo (schoo@cs.rulimburg.nl)
  1466.  
  1467. ============================================================================
  1468. From: geertj@ica.philips.nl (Geert Jan de Groot)
  1469. Date: 13 Aug 93 20:48:26 GMT
  1470. Organization: Philips Consumer Electronics, Eindhoven, The Netherlands
  1471.  
  1472. Mills@UDEL.EDU writes:
  1473. >The offset looks too high. Note the frequency slowly climing, which 
  1474. >suggests the usual problem with SPARCs. Your /etc/rc.local file should look
  1475. >something like this:
  1476.  
  1477. >if [ -f /usr/local/bin/tickadj ]; then
  1478. >        /usr/local/bin/tickadj -t 9999 -a 5 -s & echo -n ' tickadjusted'
  1479. >fi
  1480. >if [ -f /usr/local/bin/xntpd ]; then
  1481. >        /usr/local/bin/xntpd & echo -n ' xntpd'
  1482. >fi
  1483.  
  1484. >This assumes SunOS 4.1.1. I am told, but have not confirmed, that 4.1.3
  1485. >has a bugfix which removes the necessity for the -t 9999 above. Then,
  1486. >I am told that Sun 5.x has a new bug which requires -t 10001. Your
  1487. >mileage may vary.
  1488.  
  1489. I found the offset to be CPU-specific. That means, when I needed
  1490. to have one CPU replaced, I had to re-find the right 'tick' value
  1491. for that specific board. It looks like the clocks are just
  1492. made with a larger tolerance than NTP can handle.
  1493.  
  1494. For each box running xntp, I build a file /etc/ntp.tick that contains
  1495. the tick value. I have values between 9997 and 10001, just to keep
  1496. the offset between +- 100 ppm on 4/280, 4/490, 4/690, 4/60, 4/65.. 
  1497. For a new CPU, I just set ntp.tick to 9999, let xntp run a day,
  1498. change ntp.tick if the offset is out of range, re-start xntp,
  1499. and retry. This usually stabilizes withing a few days.
  1500. If the offset is much too high (>250ppm), I found that xntp does
  1501. not obtain lock at all. These are all 4.1.3 machines.
  1502.  
  1503. Geert Jan
  1504.  
  1505. ============================================================================
  1506. From: mose@ns.ccsn.edu (Russell Mosemann)
  1507. Subject: Re: NTP for VMS
  1508. Date: 24 Aug 93 19:32:28 GMT
  1509. Organization: Concordia College, Seward, NE
  1510.  
  1511. irv@ccstat.mc.duke.edu writes:
  1512.  
  1513. >I have been reading this group for a few months now and have never seen
  1514. >mention of a version of NTP for VAX/VMS. I also checked the archives at
  1515. >UDEL.EDU. Did I miss is or is there no version for VAX/VMS?
  1516.  
  1517.    There is no version that I know of unless you use Multinet.  I am
  1518. finishing a port of ntpdate to VMS.  I need to smooth out the code in
  1519. a couple of places and document it, but for the most part it is done.
  1520. When it is complete, I will submit it to the archives.  Watch this space
  1521. for further news.
  1522.    If I get really exicted some day, I might try to port xntpd to VMS,
  1523. but that won't happen for at least a year.
  1524. -- 
  1525. Russell Mosemann     Concordia College      Voice: (402) 643-7445
  1526. Computing Center     Seward, NE 68434       Fax:   (402) 643-4073
  1527. ============================================================================
  1528. From: iglesias@draco.acs.uci.edu (Mike Iglesias)
  1529. Subject: Re: NTP for VMS
  1530. Date: 24 Aug 93 23:02:37 GMT
  1531. Organization: University of California, Irvine
  1532.  
  1533. Both Wollongong and Multinet support NTP for VMS.  Wollongong is ntp v1,
  1534. and I believe that Multinet is also.
  1535.  
  1536. -- 
  1537. Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
  1538. University of California, Irvine     BITNET:      iglesias@uci
  1539. Office of Academic Computing         uucp:        ...!ucbvax!ucivax!iglesias
  1540. Distributed Computing Support        phone:       (714) 856-6926
  1541.  
  1542. ============================================================================
  1543. From: Mills@UDEL.EDU
  1544. Subject: Re:  xntp problem
  1545. Date: 25 Aug 93 00:00:22 GMT
  1546.  
  1547. Wesley,
  1548.  
  1549. The ntpdc works with NTP Version 1 implementations (ntpd) and not
  1550. Version 2 nor Version 3 implementations (xntp, xntp3, xntp-jones).
  1551. The equivalent program for the latter implementation is xntpdc included
  1552. in the xntp3, xntp-jones distributions. This program also works with
  1553. the Version 2 implemenation. Having said this, the program of choice
  1554. to fondle v2 and v3 implementations is ntpq in the xntp3, xntp-jones
  1555. distribution. This program conforms to the NTP Version 2/3 specifications
  1556. rfc-1119, rfc-1305, respectively and should work with other implementations
  1557. now coming online. The xntpdc program is very implentation dependent and
  1558. nto likely to work with any other implementation.
  1559.  
  1560. Dave
  1561.  
  1562. ============================================================================
  1563. From: dkatz@CISCO.COM (Dave Katz)
  1564. Subject: churchy.udel.edu
  1565. Date: 6 Sep 93 20:32:42 GMT
  1566.  
  1567. I did a little monitoring of churchy (a cisco IGS) which is filling in
  1568. at a peer address that was idle for some months.
  1569.  
  1570. In 20 minutes, 650 NTP requests were received from 106 hosts.
  1571.  
  1572. Three sites had seven peers chiming with churchy.
  1573.  
  1574. A number of the peers are running version 1 NTP.
  1575.  
  1576. Looks like mucho cruft out there...
  1577.  
  1578. ============================================================================
  1579. From: JDB6@psuvm.psu.edu
  1580. Subject: Novell server time module available
  1581. Date: 14 Sep 93 17:58:24 GMT
  1582. Organization: Penn State University
  1583.  
  1584. There is now a directory on FTP.OTC.PSU.EDU which contains
  1585. information and software for synchronizing time on Novell
  1586. Netware servers with a Network Loadable Module (NLM) that
  1587. uses the unix "rdate" protocol. This NLM will allow Netware
  1588. servers to synchronize their time to time servers (eg:
  1589. CLOCK.PSU.EDU) within one second of accuracy.
  1590.  
  1591. This is not an implementation of Network Time Protocol (NTP),
  1592. which could provide better accuracy. Novell has committed
  1593. to that effort through the Distributed Time Service (DTS)
  1594. portion of OSF's Distributed Computing Environment (DCE).
  1595. An announcement on that from Novell will probably not happen
  1596. before the first quarter of 1994. Delivery schedule is even
  1597. more uncertain at this point.
  1598. (Feel free to correct me if you know something more current. :-)
  1599.  
  1600. *I don't speak for Penn State, Novell, or anyone else... *
  1601.  
  1602. The following is an information file included in the directory:
  1603.  
  1604. --- enclosed file follows ---
  1605.  
  1606. Info on files in /pub/ntp/ms_dos/novell on ftp.otc.psu.edu.
  1607.  
  1608. rdatenlm.txt   This file. ASCII text.
  1609. rdatenlm.zip   PKZIPed (tm) RDATE.NLM and README.TXT. Binary file.
  1610.  
  1611. --- beginning of README.TXT (extracted from RDATENLM.ZIP) ---
  1612.  
  1613. This package contains an RDATE NLM for Novell Netware 386 (tm)
  1614.     +-------------------------------------------------------------------+
  1615.     |Permission is hereby granted for this archive to be distributed via|
  1616.     |BBS, Compuserve, Anonymous FTP and any other means so long as no   |
  1617.     |fee is charged for distribution and all components of this archive |
  1618.     |remain together.                                |
  1619.     +-------------------------------------------------------------------+
  1620. The RDATE NLM is Copyright (c) 1992 MurkWorks, All Rights Reserved.
  1621.  
  1622. RDATE.NLM  - 10/12/92
  1623.  
  1624. ** This is free software **
  1625.  
  1626. MurkWorks has provided this NLM to the Novell user community at no charge.
  1627.  
  1628. Purpose:
  1629.     The RDATE NLM allows the supervisor to synchronize the time
  1630.     of a Novell NW386 file server with the time of a nearby
  1631.     Unix host (or any other host which supports the time protocol).
  1632.  
  1633. [...]
  1634. [eof]
  1635.  
  1636. ============================================================================
  1637. From: jcs@zoo.bt.co.uk (John C Sager)
  1638. Subject: Re: any reason for ntp/tcp service?
  1639. Date: 21 Sep 93 09:19:07 GMT
  1640. Organization: BT Laboratories, Martlesham, Ipswich, UK
  1641.  
  1642. In article <27l3svINNb67@srvr1.engin.umich.edu>, darrin@engin.umich.edu (Darrin P Cardani) writes:
  1643. > Several of our /etc/services files listed ntp as a tcp service only, or
  1644. > as a udp and tcp service. The ones that listed it as tcp only, didn't work,
  1645. > so I fixed them by changing it to udp. Is there any reason to include tcp 
  1646. > service, though? I have seen it on 2 platforms so far.
  1647.  
  1648. SunOS 4 /etc/services files are/were all like this, probably due to a misunderstanding at Sun. Dunno about other manufacturers. As you say,
  1649. a change to udp will fix it.
  1650.  
  1651. John C Sager                    Mail:    B67 G18, BT Labs
  1652. Email:        jcs@zoo.bt.co.uk            Martlesham Heath
  1653. Tel:        +44 473 642623                IPSWICH  IP5 7RE
  1654. Fax:        +44 473 637614                England
  1655. Disclaimer:    This is me, not BT.
  1656.  
  1657. ============================================================================
  1658. From: eggert@twinsun.com (Paul Eggert)
  1659. Subject: Re: Puzzled about leap seconds
  1660. Date: 22 Sep 93 02:29:03 GMT
  1661. Organization: Twin Sun Inc, El Segundo, CA, USA
  1662.  
  1663. t.d.g.sandford@bradford.ac.uk (Thomas Sandford) writes:
  1664.  
  1665.     I think it means that ntp maintains the clock as though leap
  1666.     seconds do not exist.
  1667.  
  1668. I'm not quite sure what you mean, but if you mean that NTP forgets
  1669. past leap seconds, you're correct.
  1670.  
  1671.     Therefore on a system running ntp your timezone file must *not*
  1672.     contain any leap second entries.
  1673.  
  1674. That depends on what you mean by ``your timezone file''.  If you're
  1675. maintaining an astronomical application synchronized with NTP, there's
  1676. a good chance you will need a leap second database (if NTP suffices at
  1677. all).  But if you're merely maintaining a Unix (or, more precisely, a
  1678. Posix.1) host, then you probably don't need leap second entries, since
  1679. Posix.1 pretends that leap seconds don't exist and this maps
  1680. conveniently into NTP's fire-and-forget leap second handling.
  1681.  
  1682.     Also could you enlighten my ignorance. What exactly is TAI?
  1683.  
  1684. The quick answer is that TAI is Temps Atomique International, i.e.
  1685. International Atomic Time.  UTC = TAI + (integral leap second corrections).
  1686.  
  1687. The exact answer is a bit much to cover in a Usenet article, but here's
  1688. my best shot.  TAI is established on the basis of clock comparison data
  1689. supplied to the Bureau International des Poids et Mesures by
  1690. timekeeping labs around the world.  It is a coordinate time scale
  1691. defined in a geocentric reference frame with the SI second as realized
  1692. on the rotating geoid as the scale unit, i.e. it is not a proper time
  1693. scale if you take relativity into account.  To find out exactly what
  1694. TAI is, see B. Guinot and C. Thomas, ``The establishment of
  1695. International Atomic Time'', BIPM Annual Report of Time Section 1, part
  1696. D (1989).  More accessible reports appear in Metrologia 24, 195-198
  1697. (1987), Metrologia 28, 57-63 (1991), and Proc IEEE 79, 894-905 (1991).
  1698.  
  1699. ============================================================================
  1700. From: beland@ireq.hydro.qc.ca (Jean Beland)
  1701. Subject: Re: NTP-client for MAC
  1702. Date: 24 Sep 93 14:38:48 GMT
  1703. Organization: Hydro-Quebec
  1704.  
  1705. Another NTP client for Macintosh is "Network Time 2.0", from Peter
  1706. Resnick. Available by anonymous FTP at sumex (shareware).
  1707.  
  1708. --
  1709. Jean Beland                 | Institut de Recherche d'Hydro-Quebec
  1710. Chercheur / Research Worker | 1800 Montee Ste-Julie,
  1711. tel: (514) 652-8076         | Varennes, Quebec, CANADA.  J3X 1S1
  1712. fax: (514) 652-8424         | Internet: <beland@ireq.hydro.qc.ca>
  1713.  
  1714. ============================================================================
  1715. From: mingo@panix.com (Charlie Mingo)
  1716. Subject: Re: NTP-client for MAC
  1717. Date: 26 Sep 93 04:56:50 GMT
  1718.  
  1719. In article <Sep.21.14.29.17.1993.11392@frogpond.rutgers.edu>,
  1720. Rick Thomas <rbthomas@frogpond.rutgers.edu> wrote:
  1721. >
  1722. >Seriously, could somebody put it up for anonymous FTP?  If I had a place
  1723. >to point to, I'd put a notice of it in the FAQ.
  1724.  
  1725.  
  1726. I posted a copy to mac.archive.umich.edu.  It should appear in a few days.
  1727.  
  1728. ============================================================================
  1729. From: tas@concert.net (Tim Seaver)
  1730. Subject: SunOS zs serial port delays
  1731. Date: 24 Sep 93 16:25:03 GMT
  1732. Organization: CONCERT Network
  1733.  
  1734. This may be old news to most of you running STREAMS kernel
  1735. drivers for radio clocks on Sun workstations, but I don't recall
  1736. it being mentioned before. In the course of tracking down a
  1737. 30 millisecond variation in timestamps on our WWVB radio
  1738. clock PPS signal, I discovered that, by default, SunOS only
  1739. services the zs serial port receive buffers every 3 clock ticks.
  1740. There's an internal flag used with the mouse port that allows
  1741. immediate interrupts, but I could find no way to set it from
  1742. user mode (other than by patching the kernel with adb once the
  1743. port is open). What this seems to imply is that every radio clock
  1744. kernel module running under SunOS on the zs serial ports should
  1745. do a
  1746.  
  1747. putctl1(WR(q)->q_next, M_CTL, MC_SERVICEIMM)
  1748.  
  1749. in the module open routine to pass the MC_SERVICEIMM (service
  1750. immediately) flag to the zs serial driver. In the xntp3
  1751. distribution, the dcf77 driver does set this, but the other
  1752. kernel modules don't. Setting this flag dropped a 30 millisecond
  1753. variation in our PPS timestamps to under 100 microseconds and
  1754. quite often under 10 microseconds over 5-10 second intervals.
  1755.  
  1756.     Tim
  1757.  
  1758. ============================================================================
  1759. From: pb@swan.cl.cam.ac.uk (Piete Brooks)
  1760. Subject: Re: XNTP3 on a Sun-3
  1761. Date: 27 Sep 93 21:44:55 GMT
  1762. Organization: U of Cambridge Computer Lab, UK
  1763.  
  1764. In article <28739v$ous@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes:
  1765. >Could anyone provide correct values for Sun4m SunOS4 and Sun4d SunOS5 please?
  1766. * -20 for the former (well, that's what I use).
  1767.  
  1768. >I don't know how to calculate these values so far.
  1769. * The code I use (in my clock driver) just finds the time to read the clock.
  1770. * Old Sun4s increment the usec each time the clock is read, then suddenly
  1771. * jumps up 20ms. So this is a plausible kind of guess as to what it might
  1772. * approximate to ...
  1773.  
  1774.  
  1775. * Try it a few times, or better still, just keep reading the clock and printing
  1776. * the deltas.  If you have multicast, look at the code to check the idle time
  1777. * of an MBone mrouted -- it's tweaked to do go fast -- microtime makes quite a
  1778. * change :-)
  1779.  
  1780. /* Find the precision of the system clock by reading it */
  1781. #define    USECS    1000000
  1782. #define    MINSTEP    5    /* some systems increment uS on each call */
  1783. #define    MAXLOOPS (USECS/9)
  1784. static int ees_get_precision()
  1785. {
  1786.     struct timeval tp;
  1787.     struct timezone tzp;
  1788.     long last;
  1789.     int i;
  1790.     long diff;
  1791.     long val;
  1792.     gettimeofday(&tp, &tzp);
  1793.  
  1794.     last = tp.tv_usec;
  1795.     for (i=0; i< 100000; i++) {
  1796.         gettimeofday(&tp, &tzp);
  1797.         diff = tp.tv_usec - last;
  1798.         if (diff < 0) diff += USECS;
  1799.         if (diff > MINSTEP) break;
  1800.         last = tp.tv_usec;
  1801.     }
  1802.     syslog(LOG_INFO,
  1803.         "I: ees: precision calculation given %duS after %d loop%s",
  1804.         diff, i, (i==1) ? "" : "s");
  1805.  
  1806.     if (i == 0)        return -20 /* assume 1uS */;
  1807.     if (i >= MAXLOOPS)    return EESPRECISION /* Lies ! */;
  1808.     for (i=0, val=USECS; val > 0; i--, val /= 2) if (diff > val) return i;
  1809.     return EESPRECISION /* Lies ! */;
  1810. }
  1811.  
  1812. ============================================================================
  1813. From: armand@bcvms.bc.edu
  1814. Subject: Re: network time server recommendations?
  1815. Date: 27 Sep 93 18:35:02 GMT
  1816. Organization: Boston College
  1817.  
  1818. In article <1993Sep27.121527.1@bcvms.bc.edu>, armand@bcvms.bc.edu writes:
  1819. > I'm interested in dedicated Network Time Servers, specifically their relative 
  1820. > price/performance/reliability information.  I've seen an ad for Bancomm's 
  1821. > Tymserve(tm) box in a recent trade journal, but have nothing to which to 
  1822. > compare it.  Any help would be appreciated.  Since this question is likely to 
  1823. > have been asked many times in the past, a reference to when it was last 
  1824. > discussed would give me a place to start.
  1825. I guess I spoke/wrote too quickly.  I just found a list of timecode receivers 
  1826. currently available on the market in CLOCK.TXT  Any experiences and/or 
  1827. recommendations would still be welcomed.
  1828.  
  1829. Armand
  1830. --- 
  1831. Boston College Computer Center                    Internet: armand@bc.edu
  1832. 140 Commonwealth Ave.                               Bitnet: armand@bcvms
  1833. Chestnut Hill, MA 02167
  1834. ============================================================================
  1835.  
  1836. ============================================================================
  1837. From: Mills@UDEL.EDU
  1838. Date: 1 Oct 93 18:33:07 GMT
  1839.  
  1840. Dave,
  1841.  
  1842. See the file clock.txt in the pub/ntp/doc directory on louie.udel.edu for
  1843. a comprehensive list of public primary and secondary servers, along with
  1844. advice on how to set up a local NTP subnet. Advice can also be found in
  1845. the doc directory of the xntp3.3.tar.Z distribution in the pub/ntp
  1846. directory on louie.
  1847.  
  1848. Dave
  1849.  
  1850. ============================================================================
  1851. From: denny@eng.sun.com (Denton Gentry)
  1852. Subject: Re: tickadj -A on Solaris
  1853. Date: 4 Oct 93 17:55:02 GMT
  1854. Organization: Sun Microsystems Computer Corp
  1855.  
  1856. In article k7s@spatula.csv.warwick.ac.uk, cudep@csv.warwick.ac.uk (Ian Dickinson) writes:
  1857. >That's the 'problem' - Solaris 2.2 has been fixed to work correctly.
  1858. >You only need to call tickadj with the -s flag to turn off dosynctodr,
  1859. >tickadj doesn't exist anymore and tick is correct. 
  1860.  
  1861.   You can also turn off dosynctodr in the /etc/system file, by putting in a line as follows:
  1862. set dosynctodr=0
  1863.   (Just on general principles, to avoid mucking around in a running kernel with tickadj -s).
  1864.  
  1865.                 Denny
  1866.  
  1867. ============================================================================
  1868. From: WhiskerP@logica.co.uk (Peter Whisker)
  1869. Subject: Re: NTP for DOS?  (We've done everything else...)
  1870. Date: 12 Oct 93 11:02:03 GMT
  1871. Organization: Logica DCG Ltd.
  1872.  
  1873. In article <CEEMpI.LFr@wang.com> fitz@wang.com (Tom Fitzgerald) writes:
  1874. >From: fitz@wang.com (Tom Fitzgerald)
  1875. >Subject: NTP for DOS?  (We've done everything else...)
  1876. >Date: Tue, 5 Oct 1993 03:22:29 GMT
  1877.  
  1878. >Macs and Novell servers are covered - but how about DOS clients?  Anyone
  1879. >have NTP client code for them?  Even a simple boot-time ntpdate equivalent
  1880. >would be welcome.
  1881.  
  1882. >This should probably be in the FAQ too, if someone has an answer to it.
  1883.  
  1884. Perhaps this might help ...
  1885.  
  1886. ;*************************************************************************
  1887. ;**        USING PDCLKSET TO SET THE PC SOFTWARE CLOCK        **
  1888. ;*************************************************************************
  1889. ;**                                    **
  1890. ;** PDCLKSET sets the time and date of the PC clock using a TIME server.**
  1891. ;** To do so, the following information is required:            **
  1892. ;**                                    **
  1893. ;** - This clients unique IP number.                    **
  1894. ;** - The IP number of an UDP/IP time server (most Unix systems).    **
  1895. ;** - The time zone offset from UTC (GMT) at this place.        **
  1896. ;** - If daylight saving (summer) time is used, which algorithm to use. **
  1897. ;**                                    **
  1898. ;** All the above info can be supplied as arguments to PDCLKSET. If any **
  1899. ;** of the first three are missing, it will send a BOOTP request to try **
  1900. ;** to find the missing info. If you are not using BOOTP you probably    **
  1901. ;** must use gateway and mask arguments too. Except for client IP number**
  1902. ;** and network mask, arguments to PDCLKSET override BOOTP info.    **
  1903. ;** Using a BOOTP server is highly recommended, freeware code exists    **
  1904. ;** for Unix systems and MSDOS PCs.                    **
  1905. ;**                                    **
  1906. ;** BOOTP can not supply which dst algorithm to use; also, zone offset    **
  1907. ;** can't always be trusted. So, in practice, zone offset and dst algo- **
  1908. ;** rithm (if applicable) are required arguments. On the other hand,    **
  1909. ;** these parameters will stay the same all around the year, no need to **
  1910. ;** change the setup.                            **
  1911. ;**                                    **
  1912. ;** If PDCLKSET finds more than one time server (sum of arguments and    **
  1913. ;** BOOTP fields) and the first one does not answer, it will try the    **
  1914. ;** other servers. The same applies for gateways.            **
  1915. ;**                                    **
  1916. ;** It is very hard to get accurate info on all the dst algorithms used **
  1917. ;** all over the world, so the one you choose, you should test out. Use **
  1918. ;** the alter argument to add or subtract time and days, and check that **
  1919. ;** the dst switch occurs correctly. When using the alter argument, the **
  1920. ;** date and time is displayed as usual, but the PC clock is not set.    **
  1921. ;** If you find any errors, mail me the correct info to my mail address **
  1922. ;** below. If you want to, you can customize your own dst algorithm,    **
  1923. ;** see detailed info below.                        **
  1924. ;**                                    **
  1925. ;** PDCLKSET talks to the network card via a packet driver. If you have **
  1926. ;** more than one packet driver, it will use the first one (lowest    **
  1927. ;** packet interrupt number) unless you use the pktintno argument.    **
  1928. ;** I have only tested PDCLKSET with Ethernet or Ethernet simulating    **
  1929. ;** packet drivers. I have one report that it works with S&K FDDI    **
  1930. ;** interfaces, if so it should work for token ring too, but I've got    **
  1931. ;** no confirmation on that.                        **
  1932. ;**                                    **
  1933. ;** Running through remote bridges or slip links may require longer    **
  1934. ;** than default timeouts. Add the number of extra seconds you need    **
  1935. ;** with the argument LongerTimeout= time.                **
  1936. ;**                                    **
  1937. ;** If you want to omit the "End of pdclkset..." msg, add Flag=128     **
  1938. ;**                                    **
  1939. ;** In AUTOEXEC.BAT you should first load the packet driver, then call    **
  1940. ;** PDCLKSET. It is very small (13 kbyte) and executes fast, so you will**
  1941. ;** not notice any delay. PDCLKSET is not memory resident and does not    **
  1942. ;** use any CONFIG.SYS devices, so no memory is wasted. Use TERMIN.COM    **
  1943. ;** if you want to unload the packet driver. See call syntax below.    **
  1944. ;** Note: If you always log into a Novell server after a boot, you    **
  1945. ;** don't need this program, the PC clock will be set from the server.    **
  1946. ;** However, if you are the supervisor, use PDCLKSET+SRVTIME to set it    **
  1947. ;** (available at msdos.ftp.sunet.se:pub/network/novelutl/srvtime).    **
  1948. ;**                                    **
  1949. ;*************************************************************************
  1950. ;**        USING PDCLKSET TO SET A TIMEZONE VARIABLE        **
  1951. ;*************************************************************************
  1952. ;**                                    **
  1953. ;** PDCLKSET can also assign the proper normal or dls timezone name to    **
  1954. ;** an environment variable (TZ is used by most systems). Argument    **
  1955. ;** "Zone= #" will assign numeric zones to TZ (like TZ=+0100). If you    **
  1956. ;** want anything else, use the alternative syntax, e.g.        **
  1957. ;** "Zone= tzone=MET,METDST" will set TZONE=MET or METDST.        **
  1958. ;**                                    **
  1959. ;*************************************************************************
  1960. ;**        SYNTAX AND EXAMPLES FOR TIMESETTING            **
  1961. ;*************************************************************************
  1962. ;**                                    **
  1963. ;**   (time is [- | +] [<hours>h] [<minutes>m] [<seconds>[s]] )     **
  1964. ;**                                    **
  1965. ;** pdclkset            (displays a usage message)    or    **
  1966. ;**                                    **
  1967. ;** pdclkset b[ootp]        (only if dst not used)    or        **
  1968. ;**                                    **
  1969. ;** pdclkset [o[ffset]=time]                        **
  1970. ;**                                    **
  1971. ;**         [d[aylightsave]=PAC | USA | CUB | CHIL | BRZ | GBR |    **
  1972. ;**                 W_EU | M_EU | E_EU | LIBY | EGY | TURK |    **
  1973. ;**                 ISR | IRAN | PRC | ROK | AUS | TASM |    **
  1974. ;**                 NSW | LHI | NZE |                **
  1975. ;**                 FrTime,FrWeekDay,FrDayOfYear,        **
  1976. ;**                 ToTime,ToWday,ToDayOfYr,AddTime]        **
  1977. ;**                                    **
  1978. ;**         [z[onename]= # | varible=normalname,dlsname        **
  1979. ;**                                    **
  1980. ;**         [i[pnr]=n.n.n.n]  [t[imservers]=n.n.n.n[,n.n.n.n[,...]]]    **
  1981. ;**                                    **
  1982. ;**         [m[ask]=n.n.n.n  g[ateways]=n.n.n.n[,n.n.n.n[,...]]]    **
  1983. ;**                                    **
  1984. ;**         [p[ktintno]=hexnr]  [a[lter]=days,time]  [f[lags]=flagnr]    **
  1985. ;**                                    **
  1986. ;**         [l[ongertimeout]=time]                    **
  1987. ;**                                    **
  1988. ;**                                    **
  1989. ;** All arguments to pdclkset must be on the same line, no continuation.**
  1990. ;** For arguments to BAT files, use ":" instead of "=" and ";" instead    **
  1991. ;** of "," .                                **
  1992. ;**                                    **
  1993. ;** Valid flags for this mode:                        **
  1994. ;**   128 = half quiet (skip the End of pdclkset line if no errors)    **
  1995. ;**                                    **
  1996. ;** Examples:                                **
  1997. ;**                                    **
  1998. ;** pdclkset o= -1h d=M_EU z=#     (my IP nr and timeserver(s) from BOOTP)**
  1999. ;**                                    **
  2000. ;** pdclkset offs=6h dst=USA zonename= tz=CST,CDT  (sets TZ=CST or CDT) **
  2001. ;**                                    **
  2002. ;** pdclkset o=8h  d=PAC  ip=123.45.6.7  ts=123.45.6.8    (BOOTP not used)**
  2003. ;**                                    **
  2004. ;** pdclkset o=-9h30m t=1.2.3.4 i=2.3.4.5 g=2.3.4.1 m=255.255.255.0    **
  2005. ;**                                    **
  2006. ;**                                    **
  2007. ;** Part of an AUTOEXEC.BAT file may look like this:            **
  2008. ;**                                    **
  2009. ;**    \net\wd8003e -w 0x7d 3 0x280 0xd000    (install packet driver) **
  2010. ;**    \net\winpkt 0x7c 0x7d            (install winpkt driver) **
  2011. ;**    \net\pdclkset o=-1h d=M_EU z=#        (set PC clock and TZ)    **
  2012. ;**                                    **
  2013. ;** If you don't want to keep the paket drivers in memory, add the    **
  2014. ;** following line:                            **
  2015. ;**                                    **
  2016. ;**    \net\termin 0x7c            (remove packet drivers) **
  2017. ;**                                    **
  2018. ;** If you just need timesetting, use pdclksml instead of pdclkset.    **
  2019. ;**                                    **
  2020. ;*************************************************************************
  2021. ;**        WHERE TO GET IT FROM                    **
  2022. ;*************************************************************************
  2023. ;**                                    **
  2024. ;** Current version of PDCLKSET can be obtained by anonymous FTP from    **
  2025. ;** ftp.lu.se:/pub/network/pdclkset/pdclkxxx.zip or from        **
  2026. ;** msdos.ftp.sunet.se:pub/network/pdclkset/pdclkxxx.zip or from Novell **
  2027. ;** server LUSTORFS/ARC:PUB\NETWORK\PDCLKSET\PDCLKxxx.ZIP        **
  2028. ;** (Netware access only in Lund and around).                **
  2029. ;** Major releases will also be available on wsmr-simtel20.army.mil and **
  2030. ;** its mirror archive sites in the msdos.pktdrvr directory.        **
  2031. ;**                                    **
  2032. ;*                                     *
  2033. ;* Jan Engvald, Lund University Computing Center             *
  2034. ;* ____________________________________________________________________  *
  2035. ;*   Address: Box 783            E-mail: Jan.Engvald@ldc.lu.se     *
  2036. ;*          S-220 07 LUND    Earn/Bitnet: xjeldc@seldc52         *
  2037. ;*          SWEDEN          (Span/Hepnet: Sweden::Gemini::xjeldc)     *
  2038. ;*    Office: Soelvegatan 18        VAXPSI: psi%2403732202020::xjeldc     *
  2039. ;* Telephone: +46 46 107458        (X.400: C=se; A=""; P=Sunet; O=lu;     *
  2040. ;*   Telefax: +46 46 138225            OU=ldc; S=Engvald; G=Jan)     *
  2041. ;*     Telex: 33533 LUNIVER S                         *
  2042. ;*                                     *
  2043. ;*************************************************************************
  2044.  
  2045.  
  2046.  
  2047. Peter Whisker
  2048. ============================================================================
  2049. From: Mills@UDEL.EDU
  2050. Subject: Re:  Looking for NTP for SVR4
  2051. Date: 12 Oct 93 01:51:44 GMT
  2052.  
  2053. Ash,
  2054.  
  2055. Yes, the latest xntp3.3 has a SVR4 port. There is quite a bit of
  2056. information in the various README and man pages scattered through the
  2057. directories. Most directories have READMEs describing the contents.
  2058. The build process is mostly automated, unless you have an oddball
  2059. Unix port. For even more information, see the pub/ntp/doc directory
  2060. on louie.udel.edu.
  2061.  
  2062. Dave
  2063.  
  2064. ============================================================================
  2065. From: schaede@lan.ccit.arizona.edu (Barry Schaede)
  2066. Subject: Re: Looking for NTP for SVR4
  2067. Date: 12 Oct 93 19:04:10 GMT
  2068. Organization: U. of Az. Center for Comp. & Info. Tech.
  2069.  
  2070. In article <9310112134.AA07630@fender>, ash@DEVNULL.MPD.TANDEM.COM (Ashvini Nangia) says:
  2071. >
  2072. >tex deleted... 
  2073. >        I'm also interested in using a "radio-clock" as the external
  2074. >        time source. If you have any information or tips as to where 
  2075. >        I can get the hardware (who sells it in the US) that would 
  2076. >        be very helpful.    
  2077.     
  2078.  
  2079. We purchased the UTS-10, which is a radio receiver with display and an
  2080. RS-232 port from Odetics.  Their address is:
  2081.  
  2082.     Odetics - Precision Time Division
  2083.     1515 South Manchester Avenue
  2084.     Anaheim, Ca. 92802-2907
  2085.     Phone 714-758-0400
  2086.  
  2087. ============================================================================
  2088. From: amoss@picton.cs.huji.ac.il (Amos Shapira)
  2089. Subject: clockdiff - measure difference in clock among UNIX machines
  2090. Date: 19 Oct 93 17:58:48 GMT
  2091. Organization: Inst. of Comp. Sci., Hebrew University, Jerusalem, Israel
  2092.  
  2093. Hello,
  2094.  
  2095. Here is a small programme to measure the difference in the clocks among
  2096. machines across an Internet network.
  2097.  
  2098. It consists on just one file so I didn't bother to package it or anything.
  2099.  
  2100. It is also available for anonymous ftp on host ftp.huji.ac.il file
  2101. /pub/network/clockdiff.c.gz (in Gzip format).
  2102.  
  2103. I don't know how accurate this programme is,  will appreciate any feedback.
  2104.  
  2105. Read the comments at the beginning for more info.
  2106.  
  2107. Bye,
  2108.  
  2109. --Amos
  2110. [[ It was 500 lines long, so I deleted it -- get it from FTP or send mail
  2111. to Amos -- Rick]]
  2112. ============================================================================
  2113. From: rbthomas@jove.rutgers.edu (Rick Thomas)
  2114. Date: Fri, 22 Oct 93 17:27:03 EDT
  2115. Subject: RE -- What I've learned about sun clocks and ntp
  2116.  
  2117. In a previous article, joey@tessi.com (Joey Pruett) says --
  2118.  
  2119. %>Let it run for at least a day, if not longer.
  2120. %>Over that time it should be able to figure out how bad your
  2121. %>clock is.  This value is recorded in the driftfile (usually
  2122. %>/etc/ntp.drift) and is updated once an hour.  Monitor this and when it
  2123. %>seems to have stabilized for a couple hours, you should be ready.
  2124. %>Kill the ntp server when you're ready to fiddle with things.
  2125. %>
  2126. %>Now the value you will want to use for 'tick' is 10000 + int(drift/100).
  2127.  
  2128.  
  2129. I have a couple of comments based on talking with a friend of
  2130. mine who has a Solbourne with a particularly horrible clock.
  2131.  
  2132. First, the formula Joey gives is appropriate for xntp version 3, only.
  2133. The units of the number reported in the drift file changed between
  2134. version 2 and version 3.  For those of us still running version 2 (or
  2135. -- horrors! -- version 1) there is a different formula.
  2136.  
  2137. The version 3 "drift" value is reported in part per million.  "Tick" is
  2138. parts per 10000, so the "100" in Joey's formula comes from
  2139.     1000000/10000 = 100
  2140.  
  2141. (As a side note, the "parts-per-million" is really "parts per 2^20", so
  2142. the "real" value of the denominator should be 104.8576, but who's counting?)
  2143.  
  2144. The version 1 and 2 "drift" value is in parts per 4096.  "Tick" is still
  2145. parts per 10,000, so we use 4096/10000 = 0.4096 as the denominator in
  2146. these cases.
  2147.  
  2148. Hence, for ntp (v1) and xntp (v2), the correct "tick" value for use in
  2149. the "tickadj -t <tick>" is 10000 + int (drift/0.4096)
  2150.  
  2151. Second, you can tell if the drift value has stabilized by looking in
  2152. your /var/adm/messages file (or wherever else you have configured the
  2153. syslog deamon to put messages from xntpd) for hourly historical drift
  2154. values.  This advice is independent of which version of the software
  2155. you are using.
  2156.  
  2157. Rick
  2158.  
  2159. ============================================================================
  2160. From: dundas@netcom.com (John A. Dundas III)
  2161. Date: Sun, 14 Nov 1993 13:25:13 -0800
  2162. Subject: Macintosh NTP Client
  2163.  
  2164. Could you please add the following to the NTP FAQ?  Thanks...John Dundas
  2165.  
  2166. Another NTP client for the Macintosh is 'NTP Client' by John Dundas.  This
  2167. shareware is available at a number of archives; use archie to search for
  2168. 'macntp'.  This software features the ability to use NTP over either UDP/IP
  2169. or AppleTalk.  (Special servers are required for AppleTalk.  The author
  2170. currently has servers implemented for Macintosh, VAX/VMS (AppleTalk for VMS),
  2171. and A/UX.  Contact the author for more details at dundas@netcom.com.)
  2172.  
  2173. ============================================================================
  2174. From: duwe@immd4.informatik.uni-erlangen.de (Torsten Duwe)
  2175. Subject: Re: xntpd 3.3a on Linux: stuck?
  2176. Keywords: tickadj, Linux, PC
  2177. Date: 24 Nov 93 13:35:34 GMT
  2178. Organization: CSD., University of Erlangen
  2179.  
  2180. >>>>> "HPA" == H Peter Anvin N9ITP <hpa@ahab.eecs.nwu.edu> writes:
  2181. [...]
  2182.     HPA> However, when /etc/ntp.drift reached the value -100.0000 is got
  2183.     HPA> firmly stuck, [...]
  2184.  
  2185. Yes, +-100 ppm is the limit, as you might know. One of the boxes I run Linux
  2186. on (a 486dx33, OPTI cs) gets as bad as -330 ppm. How do I know ? tick
  2187. adjustment - see below...
  2188.  
  2189.     HPA> tickadj just gives me "The value of tick is silly", this is after
  2190.     HPA> making a link from /vmunix to /usr/src/linux/zBoot/zSystem.
  2191.  
  2192. Right - this would be the way to do old-fashioned, ugly /dev/kmem-ing in
  2193. Linux, but even if you don't get errors it still wouldn't work. tick gets
  2194. reset to 10000 every tick :-(. Looks like you're another customer for the
  2195. hwtickadj for PCs I am (about) to write. It is going to do outb()s to adjust
  2196. the divider value in the timer chip. Temporary workaround: fix the divider in
  2197. linux/include/linux/timex.h (line 67:CLOCK_TICK_RATE) in steps of 100 (the
  2198. resolution that gets fed into the divider). +100 compensates for approx.
  2199. -83.8 ppm drift. After recompiling and booting the new kernel you should be
  2200. fine.
  2201.  
  2202. Hope that helps
  2203.  
  2204.     Torsten
  2205. ---
  2206.  Torsten Duwe      duwe@informatik.uni-erlangen.de | /etc/init: respawn failed.
  2207.  Friedrich-Alexander-Universitdt Erlangen-N|rnberg | fork license for
  2208.  Informatik IV (Betriebssyteme, verteilte Systeme) | uid 0 has expired.
  2209.  
  2210. ============================================================================
  2211. From: shotokan@diku.dk (Kim H|glund)
  2212. Subject: Re: HP problem with ntp
  2213. Date: 30 Nov 93 08:45:57 GMT
  2214. Organization: Department of Computer Science, U of Copenhagen
  2215.  
  2216. darrin@engin.umich.edu (Darrin P Cardani) writes:
  2217. >I have a handful of hp's running hp_ux90 which are losing sync like crazy
  2218. >for some reason. We have several hp's running hp_ux90, which are running
  2219. >fine. For some reason these few machines (all on different subnets, all 
  2220. >able to reach their broadcasters) are losing sync several times a day.
  2221. >Has anyone heard of this, and does anyone know of a solution? They're logging
  2222. >several thousand messages a day. Any help would be greatly appreciated.
  2223.  
  2224. Several people (including myself) have experienced this with xntpd v3.3.
  2225. For the time being I believe the solution is to use xntpd version 3.1.
  2226.  
  2227. --Kim
  2228. ============================================================================
  2229. From: scottr@news.plexus.com (Scott Reynolds)
  2230. Subject: Re: HP problem with ntp
  2231. Date: 30 Nov 93 19:36:46 GMT
  2232. Organization: Plexus Corp. -- Neenah, Wisconsin
  2233.  
  2234. In <1993Nov30.084557.18923@odin.diku.dk> shotokan@diku.dk (Kim H|glund) writes:
  2235.  
  2236. >darrin@engin.umich.edu (Darrin P Cardani) writes:
  2237. >>I have a handful of hp's running hp_ux90 which are losing sync like crazy
  2238. >>for some reason. [...]
  2239.  
  2240. >Several people (including myself) have experienced this with xntpd v3.3.
  2241. >For the time being I believe the solution is to use xntpd version 3.1.
  2242.  
  2243. I have been running xntpd-3.3b for the last week with no ill effects on both
  2244. the 400 series HP-UX 9.0 and 700 series HP-UX 9.01 platforms.  You might
  2245. consider giving this a try.  Don't forget to install (and run!) adjtimed.
  2246. Note that the config script will understand the OS as v8, not v9.
  2247. -- 
  2248. Scott Reynolds
  2249. Assistant System Adminstrator
  2250. Technology Group, Inc.
  2251. scottr@plexus.com
  2252.  
  2253. ============================================================================
  2254. From: philip@charon.citicorp.com (Philip Gladstone)
  2255. Subject: Re: request for example kernel PLLs
  2256. Date: 12 Dec 93 23:20:50 GMT
  2257. Organization: Citicorp
  2258.  
  2259. Duane Voth (duanev@mpd.tandem.com) wrote:
  2260. : So, can anyone send me an example of a proper adjtime() (or ntp_adjtime())
  2261. : system call?  Maybe even something with a PLL attached?  We are running a
  2262. : USL SVR4 kernel here.  Please, no actual copyrighted code.
  2263.  
  2264. You might like to look at the Linux kernel that includes a PLL clock
  2265. implementation that seems to work. Look at your local Linux archive
  2266. for sources or try tsx-11.mit.edu
  2267.  
  2268. -- 
  2269. Philip Gladstone - Consultant
  2270. Citicorp Global Information Network
  2271. I don't speak for Citicorp. I presume that somebody else does!
  2272.  
  2273. ============================================================================
  2274. From: duanev@mpd.tandem.com (Duane Voth)
  2275. Subject: Re: ntp black box?
  2276. Date: 10 Dec 93 22:56:13 GMT
  2277. Organization: TANDEM Computers, Inc (MPD)
  2278.  
  2279. In article <1993Dec8.194428.10913@advtech.uswest.com>, huntting@advtech.uswest.com (Brad Huntting) writes:
  2280. > I'm looking for a dedicated "plug-n-play" stratum 1 ntp server to
  2281. > attach to ethernet or fiddi.
  2282. > Does such a beast exist?
  2283.  
  2284. Yes.  I know of two from one company, there should be a couple more companies
  2285. offering these things too...
  2286.  
  2287. The Bancomm division of DATUM INC. sells:
  2288.  
  2289.     a) Tymserve 2000 LAN Time Server         $ 8,500
  2290.     b) BC700LAN GPS Network Time Server      $12,700
  2291.  
  2292. You can get Global Positioning System receivers for both (prices quoted
  2293. include GPS) to make it truely worthy of a stratum 1 server: accuracies
  2294. quoted are less than +/- 2 usecs of UTC.  If you have an IRIG time code
  2295. source near by you can skip the GPS option and knock off $2k-$4k.  The
  2296. BC700 appears to free-run at 0.5ppm with an oven option to go to 0.002ppm!
  2297. (thats right 2x10e-9!)  Can't seem to find a ppm spec on the Tymserve -
  2298. it may not free-run at all.
  2299.  
  2300. Bancomm is in San Jose, CA   1-800-348-0648
  2301.  
  2302. I have not used one of these yet but hope to soon.
  2303. ============================================================================
  2304.  
  2305. Date: Wed, 22 Dec 93 16:58:34 EST
  2306. From: rbthomas@jove.rutgers.edu (Rick Thomas)
  2307. Subject: Re:  faster scrolling on raw SPARCstation screen
  2308.  
  2309. Here is the NVRAM patch that speeds up scrolling on Sun4c bare consoles
  2310. by copying the FORTH console driver into (fast) RAM, instead of allowing
  2311. it to execute out of (slow) ROM.  It incidentally fixes (most) of the
  2312. dropped interrupts that cause "last adjustment didn't complete".
  2313.  
  2314. Heed the warnings!  Do NOT use this with early ROM revisions!
  2315.  
  2316. Enjoy!
  2317.  
  2318. Rick
  2319.  
  2320. PS -- don't despair if you have a ROM rev below 2.2.  Latest rev ROMs 
  2321. can be purchased from SUN for a cost of about US$50.
  2322.  
  2323. > Date: Sun, 2 Jan 1994 21:47:41 -0800
  2324. > From: Nick Sayer <nsayer@quack.kfu.com>
  2325. > I didn't see any mention of this...
  2326. > You can make a vast improvement both in the clock accuracy and the speed
  2327. > of the ROM console (at the cost of 200K of RAM or so) with this (works
  2328. > only with boot ROM rev 2.0 or higher, which should be available on
  2329. > any sparc apart from the sun4_ kernel architecture. I just got an
  2330. > upgrade for my SS1+ that bumped it up from 1.mumble to 2.9!):
  2331. ::::::::::::::: cut here and make an executable file ::::::::::::::::::::::
  2332. #! /bin/sh
  2333.  
  2334. echo 'Be VERY careful -- install this ONLY on machines with PROM revision 2.2'
  2335. echo 'or higher.  This will cause very unpeasant hangs in lower revs.  "Very'
  2336. echo 'unpleasant" means "refuses to boot and may require a service call to'
  2337. echo 'get it fixed."  On PROM revs equal to or later than 2.2, you can use'
  2338. echo 'the "<L1>-N" sequence to set all EEPROM values back to factory default.'
  2339. echo '(Hold down the <L1> key and the "N" key while the power is turned on.)'
  2340. echo ''
  2341. echo 'got that?'
  2342. echo 'Answer "yes" to continue.'
  2343.  
  2344. read answer
  2345. if [ "$answer" != "yes" ]
  2346. then
  2347. exit 1
  2348. fi
  2349.  
  2350. eeprom 'nvramrc=probe-all install-console 
  2351. ramforth 
  2352. : cache-page dup pgmap@ cacheable swap pgmap! ; 
  2353. up@ cache-page 
  2354. here origin do i cache-page pagesize +loop 
  2355. banner'
  2356.  
  2357. eeprom 'use-nvramrc?=true'
  2358.  
  2359. exit 0
  2360. ::::::::::::::: cut here and make an executable file ::::::::::::::::::::::
  2361. ============================================================================
  2362.  
  2363. From: ken@sdd.hp.com (Ken Stone)
  2364. Subject: Re: adjtimed dies on HP-UX 9.0 (s800)
  2365. Date: 23 Dec 93 21:29:30 GMT
  2366. Organization: Hewlett Packard, San Diego Division
  2367.  
  2368. In article <1993Dec23.093917.13538@walter.cray.com> osh@cray.com (John O'Shaughnessy) writes:
  2369. >I've installed xntp 3.1 on an HP 9000-845 running HP-UX 9.0.
  2370. >It builds just fine, and when launched manually, runs just fine.
  2371. >I've included the following in the /etc/netbsdsrc startup file:
  2372. >
  2373. >  /usr/local/etc/adjtimed -r
  2374. >  /usr/local/etc/xntpd
  2375. >
  2376. >Both startup OK, but adjtimed dies immediately, with the following line
  2377. >in syslog:
  2378. >
  2379. >  Dec 22 18:06:16 a00308 adjtimed[188]: read message: Identifier removed
  2380.  
  2381. Geez ... maybe this oughta go in the FAQ ?
  2382.  
  2383. In a stock 9.X s700/s800 systems, there is a bug in DIAGMON that causes 
  2384. it to trash all message queues when it starts up.  The possible solutions 
  2385. range as follows ....
  2386.  
  2387.     a. Get the DIAGMON patch from the response center ....
  2388.  
  2389.     b. Start adjtimed/xntpd shortly after DIAGMON (ie not in netbsdrc)
  2390.  
  2391.     c. Just don't run DIAGMON (ie comment it out in /etc/rc)
  2392.  
  2393. And life will be much better ...
  2394.  
  2395.   -- Ken
  2396.  
  2397. ============================================================================
  2398.  
  2399. From: Mills@UDEL.EDU
  2400. Subject: Culturally correct chime
  2401. Date: 1 Jan 94 21:37:43 GMT
  2402.  
  2403. Folks,
  2404.  
  2405. A problem previously mentioned and often casually ignored has come to
  2406. the point I must vigorously protest; and, I suspect my problem may
  2407. be generic to a bunch of other places. It has to do with the use of
  2408. private, unannounced server resources. I have several private time
  2409. servers here used for experiment and local service, one of which is
  2410. being hounded by over 50 unapproved rascals, 12 of which from the
  2411. same net(!). That breaks several of the culturally correct expectations
  2412. spoused in the file clock.txt frequently announced to this list. I'd like
  2413. these rascals to go away, especially as this host is used for all kinds
  2414. of experiments and sometimes tells awful time. I'd rather not be more
  2415. specific; but, if anybody is punching net 128.4 clocks other than
  2416. public primary servers rackety.udel.edu (128.4.1.1) and churchy.udel.edu
  2417. (128.4.1.2) and secondary server louie.udel.edu (128.175.1.3), I`d
  2418. sure like them to contact me first.
  2419.  
  2420. On a related matter, cultural correctness calls for no more than two
  2421. clients from any net to gang up on any single primary server. On rackety
  2422. I see as many as 19 clients from the same net! It may be time, as I
  2423. had to do in the fuzzballs, to put code in the NTP daemon that enforces
  2424. this. It's a terrible idea in the first place, since it introduces a
  2425. serious hazard, should the primary server go berserk. In fact, rackety
  2426. has a dead radio right now and is operating at stratum 2 by chiming
  2427. another stratum-1 server. If that radio comes bum, all of our servers
  2428. back out to a WWVB radio, which is not working correctly either. See
  2429. what I mean?
  2430.  
  2431. Finally, note that we have on the order of 1000 clients now honking our
  2432. three servers, quite a few running old versions (1 and 2) of the
  2433. protocol. The problem is, these versions do not scale back the rate of
  2434. chime once the local clock has stabilized. There would be a considerable
  2435. reduction in network loads (about a factor of 16) if these old versions
  2436. could be upgraded to version 3 (xntp3.3b.tar.Z on louie.udel.edu in the
  2437. pub/ntp directory). This is one of those problems that we tend to
  2438. ignore until, one day, the network just freezes up.
  2439.  
  2440. Dave
  2441.  
  2442. ============================================================================
  2443.  
  2444. From: scoggin@delmarva.com (John K Scoggin Jr)
  2445. Subject: Re: Question: How to time sync VAX/VMS and Ultr
  2446. Date: 9 Jan 94 15:13:01 GMT
  2447. Organization: Delmarva Power & Light
  2448.  
  2449. In article 855@gtewd.mtv.gtegsc.com, gidleyk@gtewd.mtv.gtegsc.com writes:
  2450. > A (hopefully) quick question for the "Time-Gods":
  2451. > We have a small isolated network, with a mix of VAX 4000's (running VMS) and 
  2452. > DECstation 5000's (running Ultrix 4.2/4.3a).  The VAXes are all getting 
  2453. > IRIG-B time signals and having their internal clocks sync'ed to that.  
  2454. > We would like to have the VAXes distribute their time to the Ultrix 
  2455. > machines, especially to a database server machine.  Is there a simple way 
  2456. > to accomplish this?  Accuracy to less than one-half second is desirable, but 
  2457. > less than one second is probably OK.  I looked that the latest NTP (v3) stuff, 
  2458. > but it is mostly greek to me, and I don't see anything that looks like it 
  2459. > will compile on the VAX/VMS systems.  
  2460.  
  2461.  
  2462. We use TGV Multinet - it has a version 1 NTP implementation.  Old, but it is
  2463. functional.
  2464.  
  2465.     - John
  2466.  
  2467. ============================================================================
  2468.  
  2469. From: nsayer@quack.kfu.com (Nick Sayer)
  2470. Subject: Re: Culturally correct chime
  2471. Date: 12 Jan 94 14:27:57 GMT
  2472. Organization: The Duck Pond public unix: +1 408 249 9630, log in as 'guest'.
  2473.  
  2474. terry@spcvxb.spc.edu (Terry Kennedy, Operations Mgr.) writes:
  2475.  
  2476. >[...] I'm not sure what would be a good, inexpensive clock, though
  2477. >[the two seem rather mutually exclusive 8-].
  2478.  
  2479. Does this mean it's time for a CHU preach? :-)
  2480.  
  2481. A CHU receiver/modem is so durn close to being free I can't believe
  2482. there aren't more of them among the stratum 1 population.
  2483.  
  2484. Rather than bellow on and on, anyone who doesn't know about CHU,
  2485. write me and I'll fill you in. The reader's digest version is:
  2486.  
  2487. shortwave radio + 3 chips + Sun running 4.1.3 + 1 serial port = +/- 1-2 ms.
  2488.  
  2489. ============================================================================
  2490.  
  2491. Date:     Thu, 13 Jan 1994 15:40 -0500
  2492. From: SHIBUYA@process.com
  2493. Subject:  Re: Preliminary FAQ -- send updates to rbthomas@rutgers.edu
  2494.  
  2495. Concerning the question "NTP on VMS", it will be appreciated if you
  2496. could add our product TCPware from Process Software as another alternative
  2497. for supporting NTP on VMS.
  2498.  
  2499. --
  2500. Hiroto Shibuya
  2501.  
  2502. Process Software Corporation
  2503. Framingham, MA
  2504.  
  2505.  
  2506. ============================================================================
  2507. From: mogul@pa.dec.com (Jeffrey Mogul)
  2508. Subject: Re: Unix boxes with only timed
  2509. Date: 14 Jan 94 03:05:41 GMT
  2510. Organization: DEC Western Research
  2511.  
  2512. In article <1994Jan13.160016.272@process.com> shibuya@process.com (Hiroto Shibuya) writes:
  2513. >|>Speaking in generalities, all modern UNIXen will *support* NTP, though few
  2514. >|>if any have it *bundled* with the OS. You'll have to obtain, compile and
  2515. >|>configure it. Your machine will support NTP just fine.
  2516. >
  2517. >Of course.  Please read 'support' as 'vendor support'.   I'm interested in
  2518. >this information since there is a demand to run timed on non-AIX box
  2519. >connected to network primarily consists of AIX, which is currently using
  2520. >timed for clock sync.  I just wanted to find out if there is any other
  2521. >machine with timed as 'vendor supported' clock sync mechanims so I can
  2522. >have wider range of testing to interoperate with 'vendor supported' timed.
  2523.  
  2524. DEC "supports" both NTP and timed as bundled parts of the ULTRIX
  2525. and OSF/1 operating systems.  From the Software Product Description
  2526. for OSF/1:
  2527.  
  2528.  Network Time Protocol
  2529.  
  2530.  DEC OSF/1 provides the Network Time Protocol (NTP) Version 2 to syn-
  2531.  chronize and distribute the time for all machines in a network envi-
  2532.  ronment. The time synchronization daemon, xntpd, is used to distribute
  2533.  time to all machines in a network.
  2534.  
  2535.  Time Synchronization Protocol
  2536.  
  2537.  DEC OSF/1 provides Berkeley's Time Synchronization Protocol (TSP). TSP
  2538.  synchronizes the time of all machines in a network without ensuring
  2539.  the accuracy of the time that is provided.
  2540.  
  2541. TSP = timed, I believe.
  2542.  
  2543. I suspect that most other Unix vendors also support timed.
  2544.  
  2545. -Jeff
  2546. ============================================================================
  2547.  
  2548. From: per@erix.ericsson.se (Per Hedeland)
  2549. Subject: Re: Unix boxes with only timed
  2550. Date: 15 Jan 94 12:05:02 GMT
  2551. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  2552.  
  2553. In article <2h5s95$ppi@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes:
  2554. >In article <2h5265$fbb@usenet.pa.dec.com>,
  2555. >    mogul@pa.dec.com (Jeffrey Mogul) writes:
  2556. >>I suspect that most other Unix vendors also support timed.
  2557. >
  2558. >Most do.
  2559. >
  2560. >SunOS 4.x does (but no NTP).
  2561.  
  2562. That's news to me - I certainly had to install it from 4.3BSD sources
  2563. (+ some additions) back when I started to take an interest in correct
  2564. timekeeping on our Suns (before I had learned about NTP:-), and the
  2565. only timed I can find on my current SunOS 4.1.3 system is in
  2566. /usr/local/etc, where it certainly wasn't put by Sun:-).
  2567.  
  2568. >Miraculously, Solaris 2.x ships with neither NTP or timed.
  2569.  
  2570. Seems that Sun's idea of timekeeping remains "use rdate every now and
  2571. then"...:-(
  2572.  
  2573. ============================================================================
  2574. From: Jerry_Scharf@corpmis.sjc.hw.sony.com (Jerry Scharf)
  2575. Subject: Re: Latest/cheapest in GPS clocks ?
  2576. Date: 21 Jan 94 03:32:53 GMT
  2577.  
  2578. Your timing is perfect. My GPSWorld issue with the annual
  2579. GPS receiver survey arrived yesterday. Here are some of the
  2580. vendors that list clock support specificly. As Dave Mills
  2581. said, you have to be a bit careful if you are after the full
  2582. accuracy. I have left out a >$5K units, and have listed some
  2583. OEM units, but it may be impossible for you to buy one of
  2584. the OEM units, so I will list them last. I just gave one
  2585. listing per company. This is a personal transcription of a
  2586. manufacturers survey, so lots of things may not be just
  2587. right, or omitted.
  2588.  
  2589. One plug. We have the TrueTime unit, and have a driver ready
  2590. for it. We like it alot.
  2591.  
  2592. Jerry Scharf
  2593.  
  2594. Banncom        bc627AT        $3695    pc board
  2595.   6541 Via Del Oro, San Jose, Ca 95119 (408)578-4161
  2596.  
  2597. Datum        9390-52000    $4000    rack
  2598.   1363 S State College Blvd, Anaheim, Ca 92806 (714)553-6333
  2599.  
  2600. Odetics        GPSync        varies    rack
  2601.   1515 S Manchester Ave, Anaheim, Ca 92802 (714)758-0400
  2602.  
  2603. Spectrum Geophysical GPS Time-Machine $2795  box
  2604.   1900 W Garvey Ave S., Ste 200, West Covina, Ca 91790 (714)544-3000
  2605.  
  2606. Stellar GPS    model 100    $2495    box
  2607.   800 Charcot Ave, Ste 110, San Jose, CA 95131 (408)383-1515
  2608.  
  2609. Trak Systems    8821 GPS clock    $3500    rack
  2610.   4726 Eisenhower Blvd, Tampa FL, 33634 (813)884-1411
  2611.  
  2612. TrueTime    GPS-TMS        $3495    box
  2613.   2835 Duike St. Santa Rosa, CA 95407 (707)587-1230
  2614.  
  2615. ----------
  2616. Magellan    GPS Brain Timing ???    oem board
  2617.   960 Overland Ct, San Dimas, Ca 91773 (909)394-5000
  2618.  
  2619. Trimble        Acutime II    ???    pod oem?
  2620.   645 N MaryAve, Sunnyvale CA 94086 (408)481-8000
  2621.  
  2622. ============================================================================
  2623. From: rbthomas@frogpond.rutgers.edu (Rick Thomas)
  2624. Subject: Re: Newbie questions.
  2625. Date: 29 Jan 94 22:46:06 GMT
  2626. Organization: Rutgers Engineering Supercomputer Lab
  2627.  
  2628. robert@lunatix.lex.ky.us (Robert Sexton) writes --
  2629.  
  2630. robert> Hello All,
  2631. robert> 
  2632. robert> After reading c.p.t.n for a while, I have decided to throw some
  2633. robert> basics on the table.  I have read the FAQ, but it seems awfully
  2634. robert> slanted towards those people on BSD with access to the net.
  2635.  
  2636. That's cause the people who have the answers are that kind of people.
  2637. I'm afraid it's unavoidable.  To try to redress the balance, I'll
  2638. include this question and my answers in the FAQ.  (Ahhh! The power of
  2639. being an editor!)
  2640.  
  2641. robert> 1.  Do you have to meet an accuracy requirement to be considered
  2642. robert>     Stratum 1?  Or is it enough to be connected to a radio clock?
  2643. robert>     I think I can use CHU to get accuracy to about 1 ms.
  2644.  
  2645. One millisecond is just fine for a stratum 1 clock.  As they say --
  2646. "Come on in, the water's fine!"  And I might add, "And welcome! We can
  2647. always use another stratum 1."
  2648.  
  2649. robert> 2.  I have the schematics for Marcus Leech's CHU reciever, but
  2650. robert> are there less expensive oftions for getting radio time signals?
  2651. robert> Can anybody recommend an inexpensive, easily interfaced radio
  2652. robert> clock?  I have considered using WWV, but it looks like the signal
  2653. robert> may be harder to work with.
  2654.  
  2655. Nick Sayer also has schematics for a CHU receiver he designed.  His
  2656. address is nsayer@quack.kfu.com .  Take a look at them and see if they
  2657. meet your needs better.
  2658.  
  2659. robert> 
  2660. robert> 3.  What sort of time signals are the ntp sources designed to
  2661. robert> work with?  will I have to write my own stuff for use with CHU?
  2662. robert> SCO UNIX does have adjtime(), so I have the basic tools
  2663. robert> available.
  2664.  
  2665. Well, for your purposes, Nick Sayer has contributed a CHU driver for
  2666. the current xntp (v3) that talks to his receiver.  It may also talk
  2667. to other CHU receivers as well.  In any case, it shouldn't take too
  2668. much work to make it talk to them.
  2669.  
  2670. robert> 4.  Is there any software out there for non-tcp time update?  I
  2671. robert> would like to offer time signals to BBS's in my area.
  2672.  
  2673. Not that I know of.  Why don't you write some?
  2674.  
  2675. robert> Thanks for your time.
  2676.  
  2677. And thank you for your questions.  They are good ones.
  2678.  
  2679. robert> Robert Sexton
  2680.  
  2681. Rick
  2682.  
  2683. ============================================================================
  2684. From: jcs@zoo.bt.co.uk (John C Sager)
  2685. Subject: Re: It's Official: GPS Anti-spoofing Is Now on Continuously
  2686. Date: 17 Feb 94 09:48:23 GMT
  2687. Organization: BT Laboratories, Martlesham, Ipswich, UK
  2688.  
  2689. In article <Feb.16.18.37.00.1994.4838@athos.rutgers.edu>, rbthomas@athos.rutgers.edu (Rick Thomas) writes:
  2690. > > 1. CONDITION: A/S WAS ACTIVATED ON DAY 031 (JAN 31 94) AT 0000 UTC.
  2691. > > DUE TO THE 8 DEC 93 DECLARATION OF INITAL OPERATIONAL CAPABILITY
  2692. > > (IOC) THE P-CODE WILL NOT NORMALLY BE AVAILABLE TO USERS WHO DO NOT
  2693. > > HAVE VALID CRYPTOGRAPHIC KEYS (IAW FEDERAL RADIONAVIGATION PLAN 1992).
  2694. > Can somebody who knows tell us all what this means to us?
  2695. > If I get a good answer, I'll put it in the FAQ.
  2696.  
  2697. GPS signals carry two sets of codes, the C/A code, with a chip rate of
  2698. 1.023 MHz, which is the one used by civilians, and also helps the
  2699. military receivers to lock on quickly. The other code is the P/Y code,
  2700. with a chip rate of 10.23 MHz. This is used by military receivers
  2701. and is capable of higher location accuracy. The P code is published,
  2702. and was in use hitherto. The Y code is an encrypted version of the
  2703. P code, and is now used instead. To use it you need a P-code receiver
  2704. with a decrypter, and a source of keys from the DoD (I assume they are
  2705. security-conscious enough to change them periodically!). The term
  2706. 'anti-spoofing' is used because it is now all but impossible for anyone
  2707. to create false GPS signals which could fool a military receiver.
  2708.  
  2709. This is probably of little consequence to most NTPers, as we all use
  2710. C/A code GPS receivers, ie they only use the civilian code. (Anyone want to
  2711. own up to using a P/Y code receiver for timekeeping?).
  2712.  
  2713. John C Sager                    Mail:    B67 G18, BT Labs
  2714. Email:        jcs@zoo.bt.co.uk            Martlesham Heath
  2715. Tel:        +44 473 642623                IPSWICH  IP5 7RE
  2716. Fax:        +44 473 637614                England
  2717. Disclaimer:    This is me, not BT.
  2718.  
  2719. ============================================================================
  2720.  
  2721. Date: Fri, 4 Mar 94 14:11:13 EST
  2722. Return-Path: kherron@s.ms.uky.edu (Kenneth Herron)
  2723. Subject: Re: Preliminary FAQ -- send updates to rbthomas@rutgers.edu
  2724. Organization: University of Kentucky, Dept. of Math Sciences
  2725.  
  2726. The two entries that mention "-t 9999" on suns could be more clear
  2727. that this is only right for the sun4 (i.e., sparc) architecture.  The
  2728. standard tick value on sun3's is 20,000 so -t 9999 makes it run at
  2729. just about half speed (which is so terrible that xntp 3 gives up :-)
  2730.  
  2731. ============================================================================
  2732. From: dupuy@cs.columbia.edu (Alexander Dupuy)
  2733. Subject: Re: NTP in demand dialup network
  2734. Date: 4 Mar 94 00:25:16 GMT
  2735. Organization: Columbia University Department of Computer Science
  2736.  
  2737. I posted a somewhat longish message a month or so ago about running
  2738. NTP over demand-dialup IP.  You can check the ppp-users archive at
  2739. ftp.morningstar.com, or the NTP mailing list archive (is there one?).
  2740.  
  2741. The brief summary is that you should use xntpdc, not ntpdate,
  2742. synchronized with a few secondaries (if you can teach your demand dial
  2743. software not to bring up the link just because there's an NTP packet
  2744. which wants to go out).  Set up a local clock "peer" at stratum 5 or
  2745. 6, so that xntpdc will stay synchronized when the link is down.  Link
  2746. up times of only slightly more than 5 minutes appear to be sufficient
  2747. to keep my IPX within 50 msec of our secondaries, once the drift rate
  2748. is accurately calculated (this may take a day or two).
  2749.  
  2750. ============================================================================
  2751. From: jcs@zoo.bt.co.uk (John C Sager)
  2752. Subject: Re: DST switching
  2753. Date: 10 Mar 94 09:08:57 GMT
  2754. Organization: BT Laboratories, Martlesham, Ipswich, UK
  2755.  
  2756. ks0102@cetrel.lu (KESSELER GEORGES) writes:
  2757. > Hi,
  2758. > how does an unix machine decide when it has to change to DST? As I understand xntp does not provide
  2759. > this information to unix as it works in UTC. Is there an algorithm or a table in unix for DST?
  2760.  
  2761. As you say, the system clock keeps UTC time (on a correctly configured
  2762. system). The kernel & library routines which provide timezone and
  2763. DST information refer to one of a set of files in a directory
  2764. somewhere. On Sun systems this is /usr/share/lib/zoneinfo, but it may
  2765. be elsewhere on other systems, eg /etc/zoneinfo. The method of
  2766. selecting the file differs. On BSD-type systems a hard link is made
  2767. between the particliar zone info file and a filename 'localtime' in the
  2768. zoneinfo directory. On SVR4-type systems, an environment variable, TZ, is
  2769. set to the name of the file to be used. The file contains information about
  2770. the zone offset from UTC, and the dates of DST changes. Look at the man pages
  2771. for zic(8), zdump(8), & tzfile(5) for more info.
  2772.  
  2773. ============================================================================
  2774. From: J.vanOuwerkerk@delftgeot.nl (Hans van Ouwerkerk)
  2775. Subject: PC sync solutions needed (Reply)
  2776. Date: 23 Mar 94 11:52:47 GMT
  2777.  
  2778. Norman H. Chang from Hewlett-Packard Laboratories asked:
  2779. > We would like to sync PCs running MS-DOS and Windows3.1 to 0.1 sec 
  2780. > across LAN/WANs.
  2781. > What solutions exist out there?
  2782. Up to now I saw no answer to this question.
  2783.  
  2784. We use LAN Manager, sold to us by Hewlett-Packard :-)
  2785.  
  2786. The server runs xntp and when people login to the fileserver for LM
  2787. (HP 9000/817) the PC is synchronised with the server. I suppose this
  2788. is accurate to 0.1 sec, but of course the clock of the PC will drift
  2789. away in the course of the day.
  2790.  
  2791. Maybe this can help Norman if he uses LAN Manager.
  2792.  
  2793. ============================================================================
  2794. From: slade@wrc.xerox.com (Mike Slade)
  2795. Subject: Re: PC sync solutions needed (Reply)
  2796. Date: 23 Mar 94 14:36:26 GMT
  2797.  
  2798. A similar solution exists if you are running PCNFS. As part of the bootup sequence and after PCNFS is started, do an 'rdate' command to your favorite NTP machine. Once again, the pc will drift away from the correct time.
  2799.  
  2800. ============================================================================
  2801. From: kardel@nessy.informatik.uni-erlangen.de (Frank Kardel)
  2802. Subject: Re: please answer: slewing the time on a "local clock" master server.
  2803. Date: 26 Mar 94 10:29:27 GMT
  2804. Organization: CSD., University of Erlangen
  2805.  
  2806. duanev@mpd.tandem.com (Duane Voth) writes:
  2807.  
  2808.  
  2809. >In article <199403151940.OAA01649@marlins.ctron.com>, hendrick@marlins.ctron.com (James R. Hendrick) writes:
  2810. >> 
  2811. >> Hi,
  2812. >>     Pardon me if this is a trivial question. I have a machine running
  2813. >> xntp that runs a bit fast. Recently, someone "pointed out" that my servers
  2814. >> clocks were all 5-10 minutes fast. I have looked and cannot seem to find a way
  2815. >> to do the equivalent of: "date -a -600". I tried this first, and it seems
  2816. >> that xntp won't let this adjustment occur (maybe it is due to date's use of
  2817. >> adjtime??) I am running "tickadj -A -s" on boot time before starting xntp.
  2818.  
  2819. From the manual (doc/xntpd.8):
  2820.  
  2821.      The local clock driver uses only the fudge time1  parameter.
  2822.      This  parameter  provides read and write access to the local
  2823.      clock drift compensation register.  This value, which  actu-
  2824.      ally  provides  a  fine  resolution speed adjustment for the
  2825.      local clock, is settable but will remain unchanged from  any
  2826.      set  value  when  the clock is free running without external
  2827.      synchronization.  The fudge time1 parameter thus provides  a
  2828.      way  to  manually  adjust the speed of the clock to maintain
  2829.      reasonable synchronization with, say, a voice time announce-
  2830.      ment.   It  is actually more useful to manipulate this value
  2831.      with the xntpdc(8) program.
  2832.  
  2833. Thus you can use the "fudge 127.127.1.x time1 x.xxx" command to change
  2834. the speed of your clock to gradually get in sync with reality.
  2835. (You must have configured keys and passwords in order to be able to
  2836. use remote configuration from xntpdc. If you didn't do that you have
  2837. to re-start xntp anyway with a new config file.)
  2838.  
  2839. There is another parameter which will set the total offset of the
  2840. ntp clock (time2). This will allow to correct for the absolute error.
  2841. The comment in the code indicates that this method works best if the
  2842. daemon was compiled with SLEWALWAYS.
  2843. By looking at the code I got an initial impression that it might even
  2844. work without SLEWALWAYS compiles in, but no guarantees here.
  2845.  
  2846. So to sum up:
  2847.     - You must have configured xntpd for remote configuration if
  2848.       you want to avoid re-starting it.
  2849.  
  2850.     - xntpdc: fudge 127.127.1.x time1 x.xxx
  2851.       will modify the drift rate of the local clock and thus allow
  2852.       you to gradually get in sync with reality (semiautomatic
  2853.       process - you have to figure out the intrinsic drift of your
  2854.       system)
  2855.  
  2856.     - xntpdc: fudge 127.127.1.x time2 x.xxx
  2857.       will (hopefully) change the system time to match reality.
  2858.       You still have to figure out the intrinsic drift.
  2859.       This is not tested and might not do what you and i expect.
  2860.  
  2861.     - get a real reference clock and forget the problem above
  2862.       (sorry - but I had to mention that 8-)
  2863.  
  2864. Frank Kardel (time@informatik.uni-erlangen.de)
  2865.  
  2866. ============================================================================
  2867. From: kardel@immd4.informatik.uni-erlangen.de (Frank Kardel)
  2868. Subject: Re: lower stratum host is terminated
  2869. Date: 25 Mar 94 21:00:41 GMT
  2870. Organization: CSD., University of Erlangen
  2871.  
  2872. tommy@crd.yokogawa.co.jp (Tomi Masahiko) writes:
  2873.  
  2874. >Running xntpd in these environment, strange behaviour was observed. 
  2875. >Problem was that when offset exceeded approximately 1000 seconds, 
  2876. >xntpd of host_B (stratum 2) was terminated, and never recovered. 
  2877. >(Actually this is not confined to broadcast mode, it also occurs
  2878. >in both client/server and peer mode.)
  2879.  
  2880. >We would like to know 
  2881. >    
  2882. >    (1)if this matter is specified, 
  2883.  
  2884. Yes, its the CLOCK_WAYTOOBIG define in include/ntp.h.
  2885.  
  2886. >    (2)if so, whether it is possible to change the "critical offset value
  2887. >      (this time 1000s)" and it is unique to hp-ux.
  2888.  
  2889. No it is common for all normal xntp configurations on all platforms.
  2890.  
  2891. You can change it if you want (you have the source). An error of
  2892. more than 1000 secs is very unusual so exiting is a valid option
  2893. on such misconfigured systems (initial time zone configuration errors or
  2894. wacky hardware clocks or long downtimes).
  2895.  
  2896. There is a compile time option to avoid the exiting of the daemon when
  2897. the time exceeds CLOCK_WAYTOOBIG.
  2898.  
  2899. Define BIGTIMESTEP to keep xntp running even if the local clock is off by
  2900. more than CLOCK_WAYTOOBIG seconds.
  2901.  
  2902. ============================================================================
  2903. From: kardel@nessy.informatik.uni-erlangen.de (Frank Kardel)
  2904. Subject: Re: NTP client?
  2905. Date: 26 Mar 94 09:51:58 GMT
  2906. Organization: CSD., University of Erlangen
  2907.  
  2908. victor@mickey.cc.utexas.edu (V Menayang) writes:
  2909.  
  2910. >Frank Kardel <kardel@nessy.informatik.uni-erlangen.de> wrote:
  2911. >>
  2912. >>Well, then use ntpdate from the xntp distribution and throw the rest
  2913. >>away.
  2914. >>
  2915.  
  2916. >Thanks, to you and others who responded to my query.
  2917. >I finally decided to get the whole xntp package and compile
  2918. >the ntpdate utility.  BTW, perhaps because how I configure
  2919. >the compile, I can only query NTP V3 servers.  Is this an expected
  2920. >behavior of the ntpdate V3?
  2921.  
  2922. Yes, unless you specify "-o <version>" on the command line. Version
  2923. 3 is the default. If you want to query version 2 servers just
  2924. do a "ntpdate -o 2 <hosts>".
  2925.  
  2926. ============================================================================
  2927. Subject: NTP internet survey
  2928. Date: 14 Mar 94 15:50:34 GMT
  2929. Organization: CSD., University of Erlangen
  2930.  
  2931. Here are the results of the latest NTP network survey.
  2932. The NTP synchronisation network was scanned via NTP control messages.
  2933. This survey just shows the ntp hosts reachable from the
  2934. University of Erlangen in the time frame below.
  2935.  
  2936. NTP synchronisation net statistics
  2937. ==================================
  2938.  
  2939. Information reflects the state of the net
  2940. as reachable from
  2941.    University of Erlangen-Nuernberg, Germany.
  2942. It is based on information collected
  2943.  from  Thu Mar  3 10:39:22 GMT 1994
  2944.  to    Mon Mar 14 15:15:02 GMT 1994
  2945. The most recent NTP host was discovered
  2946.        Mon Mar 14 15:15:02 GMT 1994
  2947. The database reaches back to
  2948.        Thu Mar  3 10:39:22 GMT 1994
  2949.  
  2950. Number of hosts:    6774 OK  out of 21148 queried
  2951.    Strati:   S-1:   73,  S-2: 1867,  S-3: 4834,  (higher strati have not been considered)
  2952.    Versions:  v3: 4516,   v2: 2258,  
  2953.    Bad hosts:
  2954.       Timeout on connect:  11565
  2955.       Protocol error    :     9
  2956.  
  2957. Hosts at Stratum 1:    v3:   64,  v2:    9,  
  2958. Hosts at Stratum 2:    v3: 1288,  v2:  579,  
  2959. Hosts at Stratum 3:    v3: 3164,  v2: 1670,  
  2960.  
  2961.  
  2962. Analysis per toplevel domains:
  2963.  
  2964.                    Stratum 1          Stratum 2          Stratum 3      Bad Hosts
  2965. Domain          Total   v3   v2 |  Total   v3   v2 |  Total   v3   v2 | Timeout Protoco
  2966. ---------------------------------------------------------------------------------------
  2967. ARPA         :     0     0    0 |     1     0    1 |     3     2    1 |       0       0
  2968. AT           :     1     1    0 |    15    15    0 |     3     2    1 |      37       0
  2969. AU           :     2     2    0 |    43    32   11 |   112    29   83 |     363       0
  2970. BE           :     0     0    0 |     8     7    1 |    28    28    0 |       6       0
  2971. CA           :     3     3    0 |    63    40   23 |   229   156   73 |     314       0
  2972. CH           :     2     1    1 |   123    46   77 |   186    82  104 |     835       1
  2973. CL           :     0     0    0 |     3     2    1 |     1     1    0 |       2       0
  2974. COM          :     8     7    1 |   246   187   59 |   292   169  123 |    1402       2
  2975. DE           :    14    14    0 |   233   142   91 |   738   364  374 |     674       0
  2976. DK           :     0     0    0 |     8     6    2 |    29    24    5 |     108       0
  2977. EDU          :    10     6    4 |   433   286  147 |  1902  1399  503 |    3039       0
  2978. ES           :     0     0    0 |     7     6    1 |    44    44    0 |       8       0
  2979. FI           :     0     0    0 |     2     2    0 |    15    14    1 |      32       3
  2980. FR           :     1     1    0 |    15    13    2 |    39    30    9 |     104       0
  2981. GB           :     0     0    0 |     1     1    0 |     0     0    0 |       0       0
  2982. GOV          :     9     8    1 |   151    69   82 |   144   117   27 |     512       0
  2983. IE           :     0     0    0 |     5     5    0 |     7     7    0 |      42       0
  2984. IL           :     1     1    0 |     1     1    0 |     5     5    0 |      17       0
  2985. IS           :     0     0    0 |     4     0    4 |     0     0    0 |       0       0
  2986. IT           :     0     0    0 |     3     2    1 |    12    11    1 |      26       0
  2987. JP           :     1     1    0 |    37    27   10 |   125    64   61 |     101       0
  2988. LU           :     0     0    0 |     1     1    0 |     0     0    0 |       2       0
  2989. MIL          :     0     0    0 |    26    21    5 |    64    48   16 |     215       0
  2990. MX           :     0     0    0 |     2     2    0 |     3     3    0 |       7       0
  2991. MY           :     0     0    0 |     2     2    0 |     3     3    0 |       3       0
  2992. NET          :     7     7    0 |    70    54   16 |    85    81    4 |      96       0
  2993. NL           :     1     1    0 |    47    40    7 |   120    51   69 |     257       0
  2994. NO           :     0     0    0 |     9     9    0 |   253   121  132 |     209       0
  2995. NZ           :     0     0    0 |     3     2    1 |     0     0    0 |       1       0
  2996. ORG          :     2     0    2 |    16    13    3 |    11     8    3 |     226       0
  2997. PL           :     0     0    0 |     2     2    0 |     1     1    0 |       4       0
  2998. PT           :     0     0    0 |     4     4    0 |     5     4    1 |       9       0
  2999. SE           :     1     1    0 |    22    19    3 |    18    13    5 |      55       0
  3000. SI           :     0     0    0 |     3     3    0 |     1     1    0 |       4       0
  3001. SU           :     0     0    0 |     3     2    1 |     0     0    0 |       2       0
  3002. UK           :     9     9    0 |   223   205   18 |   283   244   39 |     791       2
  3003. US           :     0     0    0 |     1     1    0 |     0     0    0 |       7       0
  3004. ZA           :     0     0    0 |     0     0    0 |     1     0    1 |       4       0
  3005. [UNRESOLVED] :     1     1    0 |    31    19   12 |    71    38   33 |    2036       1
  3006. seahawks     :     0     0    0 |     0     0    0 |     1     0    1 |       0       0
  3007. ---------------------------------------------------------------------------------------
  3008. *TOTAL*      :    73    64    9 |  1867  1288  579 |  4834  3164 1670 |   11565       9
  3009.  
  3010. Following domains only had not responding hosts:
  3011.   BG, CZ, HR, SG, TH, lepton, pentium, righton.
  3012.  
  3013. The "top level domains" seahawks, lepton, pentium an righton are a
  3014. result of misconfigured reverse address translation information.
  3015.  
  3016. Frank Kardel & Rainer Pruy
  3017. ============================================================================
  3018. From: kardel@nessy.informatik.uni-erlangen.de (Frank Kardel)
  3019. Subject: Re: DST switch time
  3020. Date: 21 Mar 94 20:01:06 GMT
  3021.  
  3022. ks0102@cetrel.lu (KESSELER GEORGES) writes:
  3023.  
  3024. >Hello,
  3025. >I have the following machines syched via ntp: ultrix, AIX, HP-UX, SCO, TandemUX
  3026. >The big question is now: will they all switch to DST at the correct time?
  3027. Ok, frustrating answer time:
  3028.     Ask your vendor whether their timezone library works correctly
  3029.     and how it is configured correctly.
  3030.     The DST switch is not a matter of NTP. Its a matter of
  3031.     the timezone code in the library anf its configuration.
  3032.  
  3033. This question is the yearly fun part. Which vendors/sysadmins did it
  3034. right this year in the current OS version ?
  3035.  
  3036. Actually I don't know which OS will do it right in what configuration.
  3037. One thing is sure - NTP does not have anything to do with it 8-). NTP
  3038. just chews on UTC. The only problem UTC introduces is the leap seconds.
  3039. So June 30th will be the time where we all sit and watch the leap
  3040. second and what it will do to our receivers an the leap second code in
  3041. xntp 8-).
  3042. ============================================================================
  3043. From: per@erix.ericsson.se (Per Hedeland)
  3044. Subject: Re: please answer: slewing the time on a "local clock" master server.
  3045. Date: 29 Mar 94 22:25:20 GMT
  3046. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  3047.  
  3048. In article <2n12q7Elio@uni-erlangen.de> kardel@nessy.informatik.uni-erlangen.de (Frank Kardel) writes:
  3049.  
  3050. [ lots of good stuff about how to tweak xntpd to keep better
  3051.   time when synced only to the local clock ]
  3052.  
  3053. >Thus you can use the "fudge 127.127.1.x time1 x.xxx" command to change
  3054. >the speed of your clock to gradually get in sync with reality.
  3055.  
  3056. Back before we had Internet access, I used this technique with very good
  3057. results - of course, to avoid having to do a lot of boring measurements
  3058. and calculations, I made a little script 'xntpdadj' to do them for me:
  3059.  
  3060. "Xntpdadj will, given an observed deviation from real time, and
  3061. knowledge ... about the time elapsed since the last time of agreement
  3062. with real time, a) adjust the clock (slowly) to agreement with real
  3063. time, and b) set a new time1 value that should keep the clock in better
  3064. agreement in the future."
  3065.  
  3066. I have put this script along with some info etc up for anon ftp in
  3067. euagate.eua.ericsson.se:/pub/unix/networking/xntpdadj.shar - note
  3068. however that it was written for, and has only been tested with, V2 xntp
  3069. - it should be possible to modify it for V3 though (it *does* need to be
  3070. modified).
  3071.  
  3072. I also eventually combined this script with a program that dialed up one
  3073. of those time-via-modem places to get a good offset from real time, and
  3074. ran it from cron every 6 hours, feeding the offset into xntpdadj if it
  3075. was > 50 ms - which it actually rarely was after a while (this was with
  3076. the clock of a good old VAX 11/750, sitting in a cooled computer room,
  3077. though...).
  3078.  
  3079. --Per Hedeland
  3080. per@erix.ericsson.se  or
  3081. per%erix.ericsson.se@sunic.sunet.se  or
  3082. ...uunet!erix.ericsson.se!per
  3083.  
  3084. ============================================================================
  3085. From: kardel@nessy.informatik.uni-erlangen.de (Frank Kardel)
  3086. Subject: Re: lower stratum host is terminated
  3087. Date: 30 Mar 94 12:09:33 GMT
  3088. Organization: CSD., University of Erlangen
  3089.  
  3090. tommy@crd.yokogawa.co.jp (Tomi Masahiko) writes:
  3091.  
  3092.  
  3093. >In such cases that the host whose local clock was without
  3094. >battery is booted (which means there is no guarantee that 
  3095. >offset is under 1000s),
  3096.  
  3097. >       (1) do we need to adjust the local clock manually?
  3098. >          (I mean, the only way to avoid the problem mentioned
  3099. >           before is to insert "ntpdate" in the /etc/rc.local 
  3100. >           start up script?)
  3101. This is one solution which might fail if ntpdate doesn't find
  3102. any hosts suitable for synchronisation. In that case it will
  3103. not correct the clock and the daemon would still give up.
  3104.  
  3105. >       (2) Otherwise, xntpd has a drive doing it automatically? 
  3106. >       if yes, I would like to know how to configure.
  3107. It would if the offset is less than CLOCK_WAYTOOBIG. There is, however,
  3108. a compilation option where xntp will not give up on large offsets.
  3109. Compile xntpd with -DBIGTIMESTEP and xntp will set the local clock
  3110. to whatever time it finds via the NTP protocol. This may or may
  3111. not be a good idea to do. Most offsets > CLOCK_WAYTOOBIG stem from
  3112. misconfigured time zone information (leading to a wrong utc time
  3113. in the kernel although date seems to show the correct time) and
  3114. thus should be corrected before xntp is brought into operation.
  3115. If you can trust your synchronisation network and the system configuration
  3116. the BIGTIMESTEP option can be used to force xntp to set the time to
  3117. network time even when the offsets exceeds CLOCK_WAYTOOBIG.
  3118.  
  3119. Frank Kardel (time@informatik.uni-erlangen.de)
  3120. ============================================================================
  3121. From: ken@sdd.hp.com (Ken Stone)
  3122. Subject: Re: when is drift value used
  3123. Date: 14 Apr 94 23:03:46 GMT
  3124. Organization: Hewlett Packard, San Diego Division
  3125.  
  3126. >    (1)I'd like to know how and when adjtimed uses "skew" and "drift",
  3127. >            which are first and second derivative of offset with time 
  3128. >            respectively. This drift value is updated every polling? 
  3129.  
  3130. It doesn't ... all adjtimed does is talk to code in xntpd and emulate the
  3131. BSD adjtime(2) system call.
  3132.  
  3133. >    (2)The other is about "tick" and "tickadj". I don't understand 
  3134. >           what these variables(tick and tickadj) originally mean.
  3135. >       I mean how these variables are estimated and how will be used.
  3136. >       And are these variables only for adjtime()? Not used by "adjtimed"? 
  3137.  
  3138. tick and tickadj are meaningless (more or less on HP-UX right now.
  3139.  
  3140. >        (3)It is said drift balue is specific to the computer xntp runs 
  3141. >       on(parameter of the computers oscillator).
  3142. >       Is there any relation between drift value and these 
  3143. >       variables(tick and tickadj)? 
  3144.  
  3145. Not on HP-UX ... at least yet anyway :-)
  3146.  
  3147. HP-UX 9.03 for the s300's is shipping now and while it does not have xntpd
  3148. shipped with it (and probably never will ?) ... it does have the adjtime(2)
  3149. system call !!  Look for NTP support and adjtime(2) on s700/s800 at 10.0.
  3150.  
  3151.   -- Ken
  3152.  
  3153. ============================================================================
  3154. From: brett@airgun.wg.waii.com (Marc Brett)
  3155. Subject: Re: HELP WITH CONFIG (Your opinions)
  3156. Date: 14 Apr 94 11:09:24 GMT
  3157. Organization: Western Geophysical, Div. of Western Atlas Int'l, Houston, TX
  3158.  
  3159. Dave Zarnoch (davez@ibx.com) wrote:
  3160.  
  3161. : A.  Is my definition of a "peer" correct for the slaves?
  3162.  
  3163. Looks OK to me.
  3164.  
  3165. : B.  In my definition for the clients, will they always
  3166. :     try to sync with the first server line or will they
  3167. :     take an average of the two servers and sync to this?
  3168. :     (I really don't want to overload one slave if they
  3169. :     will only read the first line only)
  3170.  
  3171. Each machine looks at all of the servers and peers in its ntp.conf file
  3172. and syncs to the "best" one.  As the clocks stabilize, the total
  3173. network load decreases, but all the servers and peers are sampled
  3174. periodically (about every 1-17 minutes).
  3175.  
  3176. : C. If my timeserver goes down or reboots, will the network
  3177. :    try to "keep up" until the timeserver comes back up?
  3178.  
  3179. As you have set it up, if the timeserver goes down, then all the slaves
  3180. and clients will be running free on their own clocks.  Not good.  To
  3181. keep them all in sync, the slaves should have a "server 127.127.1.x"
  3182. line, where x is greater than the timeserver's level.  To avoid
  3183. contention, the values of x should be different on the two peered
  3184. slaves, say 127.127.1.5 on slv07_A and 127.127.1.6 on slv07_B,
  3185. 127.127.1.5 on slv09_A and 127.127.1.6 on slv09_B (assuming that the A
  3186. slaves have the better clocks).  If both A and B slaves are at the same
  3187. stratum, then the two slaves' clocks will drift apart and the clients
  3188. will "clock hop" between the two.
  3189.  
  3190. : D. Are these stratum levels correct?
  3191.  
  3192. Free-running time servers probably should be at stratum 10.  If the
  3193. clients are nested deeply, then this could be raised so that no
  3194. client tries to exceed stratum 16.
  3195.  
  3196. : E. Is it necessary to add "ntpdate <internet address>" to
  3197. :    my rc.local file also?
  3198.  
  3199. No, but it is a very good idea.  Why boot a machine with an inaccurate
  3200. clock?  All of our Suns have this in rc.local before the calls to
  3201. tickadj and xntpd.
  3202.  
  3203. if [ -f /usr/local/bin/ntpdate ]; then
  3204.     /usr/local/bin/ntpdate -b <NTP_servers ...> <NTP_slaves ...>
  3205. fi
  3206.  
  3207. --
  3208. Marc Brett              Marc.Brett@london.waii.com
  3209. Western Geophysical     Tel: +44 81 560 3160
  3210.  
  3211. ============================================================================
  3212. From: ken@sdd.hp.com (Ken Stone)
  3213. Subject: Re: xntpd on HP
  3214. Date: 14 Apr 94 23:06:41 GMT
  3215. Organization: Hewlett Packard, San Diego Division
  3216.  
  3217. >I have gotten xntpd version 3.3q which I plan to implement on an HP700 series
  3218. >running HP-UX version 9.  Is it true that this version has eliminated the time-
  3219. >warping problem?  Someone please let me know if this is so.  I would also like
  3220. >to know where the problem existed and how it was fixed.
  3221.  
  3222. I have verified that it is gone at p ... so I would hope that anything after
  3223. that is OK also ... the problem was in the handling of adjtime() failing.
  3224. Just happens that on most machines, its pretty hard for a simple system
  3225. call to fail ... whereas on HP's, adjtime() is anything but a simple system
  3226. call :-( 
  3227.  
  3228.   -- Ken
  3229.  
  3230. ============================================================================
  3231.  
  3232. 
  3233.